]> The Tcpdump Group git mirrors - tcpdump/blobdiff - missing/getopt_long.c
Fix the pointer tests in the non-ndoified TTEST2() macro as well.
[tcpdump] / missing / getopt_long.c
index 245e7bd3e45fa40ae36c33e03fc7f8e24f12fa17..80857369804dbe21aa4c27ad50db68f743d8656e 100644 (file)
@@ -51,7 +51,7 @@
 
 
 #include <errno.h>
-#include "getopt.h"
+#include "getopt_long.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -80,7 +80,7 @@
 #endif
 
 char *optarg;
-int optind, opterr, optopt;
+int optind, opterr = 1, optopt;
 
 static int getopt_internal(int, char * const *, const char *,
                           const struct option *, int *, int);