changeset 9 | bdf20e6eefd7 |
parent 7 | e4f1a551d45c |
child 10 | d07309450285 |
--- a/main.c Wed Sep 28 09:04:16 2011 -0700 +++ b/main.c Wed Sep 28 09:04:16 2011 -0700 @@ -54,9 +54,11 @@ /* get_opt vars */ int opt = 0; - opterr = 0; + extern char *optarg; + extern int opterr, optind, optopt; /* parse options */ + opterr = 0; while ( (opt = getopt( argc, argv, "d:f:hv" )) != -1 ) { switch ( opt ) {