Project

General

Profile

« Previous | Next » 

Revision 56177514

Added by Hamish Coleman almost 16 years ago

  • ID 56177514a5907ecaefd3124cebd8169e3db95950

Ooops, meant to hook the getopt processing in while cleaning up main

View differences:

wconsd.c
}
#define GETOPT_INIT 1
#define GETOPT_SCMINIT 2
static int do_getopt(const int whence, const int argc, char **argv) {
static int do_getopt(const int argc, char **argv) {
static struct option long_options[] = {
{"install", 0, 0, 'i'},
{"remove", 0, 0, 'r'},
......
}
modules_init(cli);
/* do_getopt(GETOPT_SCMINIT,argc,argv) */
/* handle commandline options */
do_getopt(argc,argv);
/* Start up sockets */
wVersionRequested = MAKEWORD( 2, 2 );

Also available in: Unified diff