aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2012-11-19 21:32:39 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2012-11-19 21:32:39 +0000
commit89c33a8266809342954388f7157a7419f4bbad2f (patch)
tree86572a0d886f1ba3bebf310c022002fb9e12c5be /capture_opts.c
parent06efe50e5f88aef68aaf4d85b714357c6edf2841 (diff)
As suggested by Evan: just make the variable a size_t instead of casting away the warning.
svn path=/trunk/; revision=46088
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/capture_opts.c b/capture_opts.c
index 7814d253ca..4e272d19be 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -543,8 +543,8 @@ capture_opts_add_iface_opt(capture_options *capture_opts, const char *optarg_str
/* didn't find, attempt a case insensitive prefix match of the friendly name*/
if(!matched){
- int prefix_length;
- prefix_length=(int)strlen(optarg_str_p);
+ size_t prefix_length;
+ prefix_length=strlen(optarg_str_p);
for (if_entry = g_list_first(if_list); if_entry != NULL;
if_entry = g_list_next(if_entry))
{