]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
condition: resolve typesize compiler warning
authorJan Engelhardt <jengelh@computergmbh.de>
Wed, 9 Apr 2008 17:52:29 +0000 (19:52 +0200)
committerJan Engelhardt <jengelh@computergmbh.de>
Wed, 9 Apr 2008 17:56:11 +0000 (19:56 +0200)
Fix warning: field precision should have type "int", but argument 2
has type "long unsigned int".

extensions/xt_condition.c

index 5bfe24230c00155f9ed23034f5c0bed05d3acd2e..258f2650a28d5f0015f0216e0ce570bacdd38f30 100644 (file)
@@ -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;
        }