Changeset - dd014aec7d56
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 16 years ago 2009-07-25 13:08:18
ohnobinki@ohnopublishing.net
fixed typo
1 file changed with 0 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/common/options.c
Show inline comments
 
@@ -82,25 +82,24 @@ int options_init(int argc, char *argv[],
 
      free(configfile);
 
      free((*allopts)->data);
 
      free(*allopts);
 
      return 1;
 
    }
 
  memset((*allopts)->remoteio, '\0', sizeof(struct remoteio_opts));
 
  (*allopts)->remoteio->ssh_command = strdup("ssh");
 
  /** @TODO: check for NULL return above */
 

	
 
  cfg_opt_t common_opts[] =
 
    {
 
      CFG_SIMPLE_STR("ssh-command", &(*allopts)->remoteio->ssh_command),
 
      CF
 
      CFG_END()
 
    };
 

	
 
  /*
 
    In these arrays, I should replace NULL with a pointer to a string in the struct which should hold the result of confuse processing an option. This is partially because confuse will not free the values it parses.
 
   */
 
  cfg_opt_t server_opts[] =
 
    {
 
      CFG_STR("username", NULL, CFGF_NONE),
 
      CFG_STR("hostname", NULL, CFGF_NONE),
 
      CFG_STR("method", "ssh", CFGF_NONE),
 
      CFG_STR_LIST("types", NULL, CFGF_NONE),
0 comments (0 inline, 0 general)