Changeset - 17bf31a10aa6
[Not reviewed]
default
0 3 0
Nathan Brink (binki) - 16 years ago 2009-06-29 23:06:04
ohnobinki@ohnopublishing.net
worked on _distren_getoptions
3 files changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/client/libdistren.h
Show inline comments
 
@@ -31,6 +31,7 @@ struct distren
 
  distren_malloc_t malloc;
 
  distren_free_t free;
 
  struct options_common *options; /*< use a pointer just to avoid #include "options.h"? */
 
  char *server;
 
};
 

	
 
struct distren_job
src/client/libdistren_config.c
Show inline comments
 
@@ -43,7 +43,10 @@ int _distren_getoptions(distren_t handle
 
      return 1;
 
    }
 
  
 
  return 1;
 
  handle->server = cfg_getstr(cfg, "server");
 
  fprintf(stderr, "using ``%s'' as server\n", handle->server);
 

	
 
  return 0;
 
}
 

	
 
/**
src/common/options.c
Show inline comments
 
@@ -131,6 +131,8 @@ int options_init(int argc, char *argv[],
 
  
 
  free(configfile);
 
  
 
  *mycfg = cfg_getsec((*allopts)->data->cfg, myname);
 

	
 
  return 0;
 
}
 

	
0 comments (0 inline, 0 general)