diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-02-24 05:39:59 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-02-24 05:39:59 +0000 |
commit | 8718e201038ddf8c738a558d33d4206ee1aa97dd (patch) | |
tree | 98eb0c4aa6c12c6f9d94a6dacac3df641b529257 /capture_opts.c | |
parent | 516d559fe8d7b5508df65ed6e9f0391aab9e6e2e (diff) |
Include <string.h> and <ctype.h> to get the appropriate functions
declared and macros defined.
Pass all the necessary arguments to "get_natural_int()".
svn path=/trunk/; revision=13490
Diffstat (limited to 'capture_opts.c')
-rw-r--r-- | capture_opts.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/capture_opts.c b/capture_opts.c index 4a27d7e892..5b384aa34e 100644 --- a/capture_opts.c +++ b/capture_opts.c @@ -28,6 +28,9 @@ #ifdef HAVE_LIBPCAP +#include <string.h> +#include <ctype.h> + #ifdef HAVE_IO_H # include <io.h> #endif @@ -297,7 +300,7 @@ capture_opts_add_opt(capture_options *capture_opts, const char *appname, int opt } #else /* HAVE_PCAP_DATALINK_NAME_TO_VAL */ /* XXX - just treat it as a number */ - capture_opts->linktype = get_natural_int(optarg, "data link type"); + capture_opts->linktype = get_natural_int(appname, optarg, "data link type"); #endif /* HAVE_PCAP_DATALINK_NAME_TO_VAL */ break; #ifdef _WIN32 @@ -317,4 +320,4 @@ capture_opts_add_opt(capture_options *capture_opts, const char *appname, int opt } } -#endif /* HAVE_LIBPCAP */
\ No newline at end of file +#endif /* HAVE_LIBPCAP */ |