Changeset a785c27 in code for icbd.c


Ignore:
Timestamp:
Jan 8, 2010, 1:16:34 PM (15 years ago)
Author:
Mike Belopuhov <mike.belopuhov@…>
Branches:
master
Children:
c45628b
Parents:
8bf5a0a
Message:

allow specifying a server name; do hostname evaluation only once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icbd.c

    r8bf5a0a ra785c27  
    4242extern char *__progname;
    4343
    44 int creategroups;
    45 int foreground;
    46 int verbose;
     44char srvname[MAXHOSTNAMELEN];
     45int  creategroups;
     46int  foreground;
     47int  verbose;
    4748
    4849void usage(void);
     
    7273        icb_init(&ic);
    7374
    74         while ((ch = getopt(argc, argv, "46CdG:v")) != -1)
     75        while ((ch = getopt(argc, argv, "46CdG:S:v")) != -1)
    7576                switch (ch) {
    7677                case '4':
     
    8889                case 'G':
    8990                        icbd_grplist(optarg);
     91                        break;
     92                case 'S':
     93                        strlcpy(srvname, optarg, sizeof srvname);
    9094                        break;
    9195                case 'v':
Note: See TracChangeset for help on using the changeset viewer.