summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_tos.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libipt_tos.c')
-rw-r--r--extensions/libipt_tos.c4
1 files changed, 2 insertions, 2 deletions
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