- Timestamp:
- Mar 5, 2014, 9:41:56 PM (11 years ago)
- Branches:
- master
- Children:
- e54f151
- Parents:
- b28dd0e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
icbd.c
rb28dd0e r3dba97d 43 43 #include "icbd.h" 44 44 45 extern char *__progname;46 47 45 uint64_t sessionid; 48 46 char modtab[ICB_MTABLEN][ICB_MAXNICKLEN]; … … 51 49 int creategroups; 52 50 int foreground; 51 char logprefix[MAXPATHLEN/2]; 52 int dologging; 53 53 int verbose; 54 54 … … 84 84 icb_init(&ic); 85 85 86 while ((ch = getopt(argc, argv, "46CdG:M: S:v")) != -1)86 while ((ch = getopt(argc, argv, "46CdG:M:L:S:v")) != -1) 87 87 switch (ch) { 88 88 case '4': … … 100 100 case 'G': 101 101 icbd_grplist(optarg); 102 break; 103 case 'L': 104 strlcpy(logprefix, optarg, sizeof logprefix); 105 dologging++; 102 106 break; 103 107 case 'M': … … 301 305 usage(void) 302 306 { 307 extern char *__progname; 308 303 309 (void)fprintf(stderr, "usage: %s [-46Cdv] [-G group1[,group2,...]] " 304 "[-M modtab]\n\t[-S name] [[addr][:port] ...]\n", __progname); 310 "[-L prefix] [-M modtab]\n\t[-S name] [[addr][:port] ...]\n", 311 __progname); 305 312 exit(EX_USAGE); 306 313 }
Note:
See TracChangeset
for help on using the changeset viewer.