Changeset - 987bb8883080
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 16 years ago 2009-04-18 23:22:45
ohnobinki@ohnopublishing.net
options: added notes for future work
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/common/options.c
Show inline comments
 
@@ -68,7 +68,10 @@ int options_init(int argc, char *argv[],
 
    {
 
      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),
 
@@ -121,6 +124,8 @@ int options_init(int argc, char *argv[],
 

	
 
int options_free(struct options_common *opts)
 
{
 
  /* free the other common_options struct's members */
 

	
 
  cfg_free(opts->data->cfg);
 

	
 
  free(opts->data);
0 comments (0 inline, 0 general)