From: Jan Engelhardt Date: Wed, 9 Apr 2008 17:52:29 +0000 (+0200) Subject: condition: resolve typesize compiler warning X-Git-Tag: v1.5.4~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37e51dc44d7fb2c7770d549f6f77e55c4f15ef5b;p=thirdparty%2Fxtables-addons.git condition: resolve typesize compiler warning Fix warning: field precision should have type "int", but argument 2 has type "long unsigned int". --- diff --git a/extensions/xt_condition.c b/extensions/xt_condition.c index 5bfe242..258f265 100644 --- a/extensions/xt_condition.c +++ b/extensions/xt_condition.c @@ -127,7 +127,8 @@ condition_mt_check(const char *tablename, const void *entry, info->name[sizeof(info->name)-1] != '\0' || memchr(info->name, '/', sizeof(info->name)) != NULL) { printk(KERN_INFO KBUILD_MODNAME ": name not allowed or too " - "long: \"%.*s\"\n", sizeof(info->name), info->name); + "long: \"%.*s\"\n", (unsigned int)sizeof(info->name), + info->name); return false; }