mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 12:45:13 +02:00
condition: resolve typesize compiler warning
Fix warning: field precision should have type "int", but argument 2 has type "long unsigned int".
This commit is contained in:
@@ -127,7 +127,8 @@ condition_mt_check(const char *tablename, const void *entry,
|
|||||||
info->name[sizeof(info->name)-1] != '\0' ||
|
info->name[sizeof(info->name)-1] != '\0' ||
|
||||||
memchr(info->name, '/', sizeof(info->name)) != NULL) {
|
memchr(info->name, '/', sizeof(info->name)) != NULL) {
|
||||||
printk(KERN_INFO KBUILD_MODNAME ": name not allowed or too "
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user