From c5a2851e96afd3e06785551ab90eb1157407e6cb Mon Sep 17 00:00:00 2001 From: gandalf Date: Wed, 26 May 2004 16:04:48 +0000 Subject: Get rid of some warnings when compiling 64bit. --- extensions/libipt_ULOG.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'extensions/libipt_ULOG.c') diff --git a/extensions/libipt_ULOG.c b/extensions/libipt_ULOG.c index 5371911..5ced462 100644 --- a/extensions/libipt_ULOG.c +++ b/extensions/libipt_ULOG.c @@ -110,7 +110,7 @@ static int parse(int c, char **argv, int invert, unsigned int *flags, if (strlen(optarg) > sizeof(loginfo->prefix) - 1) exit_error(PARAMETER_PROBLEM, "Maximum prefix length %u for --ulog-prefix", - sizeof(loginfo->prefix) - 1); + (unsigned int)sizeof(loginfo->prefix) - 1); strcpy(loginfo->prefix, optarg); *flags |= IPT_LOG_OPT_PREFIX; @@ -177,10 +177,10 @@ static void save(const struct ipt_ip *ip, printf("--ulog-qthreshold %llu ", loginfo->qthreshold); #else if (loginfo->copy_range) - printf("--ulog-cprange %d ", loginfo->copy_range); + printf("--ulog-cprange %u ", (unsigned int)loginfo->copy_range); if (loginfo->qthreshold != ULOG_DEFAULT_QTHRESHOLD) - printf("--ulog-qthreshold %d ", loginfo->qthreshold); + printf("--ulog-qthreshold %u ", (unsigned int)loginfo->qthreshold); #endif } @@ -196,7 +196,7 @@ print(const struct ipt_ip *ip, #ifdef KERNEL_64_USERSPACE_32 printf("copy_range %llu nlgroup ", loginfo->copy_range); #else - printf("copy_range %d nlgroup ", loginfo->copy_range); + printf("copy_range %u nlgroup ", (unsigned int)loginfo->copy_range); #endif print_groups(loginfo->nl_group); if (strcmp(loginfo->prefix, "") != 0) @@ -204,7 +204,7 @@ print(const struct ipt_ip *ip, #ifdef KERNEL_64_USERSPACE_32 printf("queue_threshold %llu ", loginfo->qthreshold); #else - printf("queue_threshold %d ", loginfo->qthreshold); + printf("queue_threshold %u ", (unsigned int)loginfo->qthreshold); #endif } -- cgit v1.2.3