diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-10-06 16:01:18 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-10-06 16:01:18 +0000 |
commit | 72676c1263b2186a915a56b7f46d5af019397117 (patch) | |
tree | 0dc184c467bbca781c4d7a049ab14a67b4e5cfea /randpkt.c | |
parent | bce3c61126947dce79b9729396b59d5e32f68b19 (diff) |
Invert check for getopt: NEED_GETOPT_H -> HAVE_GETOPT_H
Rename getopt.[ch] -> wsgetopt.[ch] to avoid name collision.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30370 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'randpkt.c')
-rw-r--r-- | randpkt.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -27,8 +27,10 @@ #include "config.h" #endif -#ifdef NEED_GETOPT_H -#include "getopt.h" +#ifdef HAVE_GETOPT_H +#include <getopt.h> +#else +#include "wsgetopt.h" #endif #ifdef HAVE_UNISTD_H @@ -500,9 +502,6 @@ main(int argc, char **argv) guint8 buffer[65536]; int opt; - extern char *optarg; - extern int optind; - int produce_count = 1000; /* number of pkts to produce */ int produce_type = PKT_ETHERNET; char *produce_filename = NULL; |