- Timestamp:
- 2006-01-15T20:31:59Z (17 years ago)
- Branches:
- master
- Children:
- daa9e02
- Parents:
- 6fda350
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
conf.c
r6fda350 rf4a5940 64 64 conf->ping_interval = 180; 65 65 conf->ping_timeout = 300; 66 proxytype = 0; 66 67 67 68 i = conf_loadini( conf, CONF_FILE ); … … 76 77 } 77 78 78 while( ( opt = getopt( argc, argv, "i:p:nvIDFc:d:h" ) ) >= 0 ) 79 while( argc > 0 && ( opt = getopt( argc, argv, "i:p:nvIDFc:d:h" ) ) >= 0 ) 80 /* ^^^^ Just to make sure we skip this step from the REHASH handler. */ 79 81 { 80 82 if( opt == 'i' ) … … 108 110 CONF_FILE = g_strdup( optarg ); 109 111 g_free( conf ); 110 /* Re-evaluate arguments. */ 112 /* Re-evaluate arguments. Don't use this option twice, 113 you'll end up in an infinite loop! Hope this trick 114 works with all libcs BTW.. */ 111 115 optind = 1; 112 116 return( conf_load( argc, argv ) );
Note: See TracChangeset
for help on using the changeset viewer.