Changeset - 91e3a9a0628e
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 16 years ago 2009-08-02 22:45:14
ohnobinki@ohnopublishing.net
distrend_do_config(): fix pointer usage
1 file changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -448,13 +448,13 @@ void blendjob_remove(struct blendjob **h
 

	
 

	
 
/* ************************** Main ************************* */
 

	
 

	
 
// Begin non-working framework?
 
	int distrend_do_config(int argc, char *argv[], struct distrend_config *config)
 
	int distrend_do_config(int argc, char *argv[], struct distrend_config **config)
 
	{
 
	  cfg_opt_t myopts_listen[] =
 
	    {
 
	      CFG_SIMPLE_STR("type", NULL),
 
	      CFG_SIMPLE_STR("path", NULL),
 
	      CFG_SIMPLE_INT("port", NULL),
 
@@ -466,14 +466,14 @@ void blendjob_remove(struct blendjob **h
 
		      myopts_listen
 
		      ,
 
		      CFGF_MULTI),
 
	      CFG_END()
 
	    };
 

	
 
	  config = malloc(sizeof(struct distrend_config));
 
	  options_init(argc, argv, &config->mycfg, myopts, "server", &config->options);
 
	  *config = malloc(sizeof(struct distrend_config));
 
	  options_init(argc, argv, &(*config)->mycfg, myopts, "server", &(*config)->options);
 

	
 
	  return 0;
 
	}
 
	int distrend_config_free(struct distrend_config *config)
 
	{
 
	  options_free(config->options);
 
@@ -501,13 +501,13 @@ int main(int argc, char *argv[])
 
    CLIENTSTATUS_IDLE = 2
 
  } clientstatus;
 

	
 
  head = NULL;
 
  cont = 1;
 

	
 
  distrend_do_config(argc, argv, config);
 
  distrend_do_config(argc, argv, &config);
 

	
 
  distrend_listen(&listenset, config);
 
  /* This is called the ``main loop'' */
 
  while(cont)
 
    {
 
      struct distren_action *action;
0 comments (0 inline, 0 general)