From efa8fc2123a2a9fc229ab471edd2b2688ce1da3a Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 19 Jul 2005 22:03:49 +0000 Subject: get rid of numerous gcc-4 warnings --- extensions/libipt_tos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/libipt_tos.c') diff --git a/extensions/libipt_tos.c b/extensions/libipt_tos.c index 7a10a502..5b1866e5 100644 --- a/extensions/libipt_tos.c +++ b/extensions/libipt_tos.c @@ -48,10 +48,10 @@ static struct option opts[] = { }; static void -parse_tos(const unsigned char *s, struct ipt_tos_info *info) +parse_tos(const char *s, struct ipt_tos_info *info) { unsigned int i; - unsigned int tos; + int tos; if (string_to_number(s, 0, 255, &tos) != -1) { if (tos == IPTOS_LOWDELAY -- cgit v1.2.3