equal
deleted
inserted
replaced
52 v.db = NULL; |
52 v.db = NULL; |
53 strcpy( v.dbname, "volta.db" ); |
53 strcpy( v.dbname, "volta.db" ); |
54 |
54 |
55 /* get_opt vars */ |
55 /* get_opt vars */ |
56 int opt = 0; |
56 int opt = 0; |
57 opterr = 0; |
57 extern char *optarg; |
|
58 extern int opterr, optind, optopt; |
58 |
59 |
59 /* parse options */ |
60 /* parse options */ |
|
61 opterr = 0; |
60 while ( (opt = getopt( argc, argv, "d:f:hv" )) != -1 ) { |
62 while ( (opt = getopt( argc, argv, "d:f:hv" )) != -1 ) { |
61 switch ( opt ) { |
63 switch ( opt ) { |
62 |
64 |
63 /* database filename */ |
65 /* database filename */ |
64 case 'f': |
66 case 'f': |