]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Resolve warnings on 64-bit compile
authorJan Engelhardt <jengelh@medozas.de>
Mon, 14 Apr 2008 13:58:17 +0000 (15:58 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 15 Apr 2008 11:47:33 +0000 (13:47 +0200)
xtables.c

index 21da4b5f5fa807ce6ebac0bdb2751b6b38651c97..b988054b4ea6a8cda6105e30c38331b2a4b518b4 100644 (file)
--- a/xtables.c
+++ b/xtables.c
@@ -318,7 +318,7 @@ static void *load_extension(const char *search_path, const char *prefix,
                if (next == NULL)
                        next = dir + strlen(dir);
                snprintf(path, sizeof(path), "%.*s/libxt_%s.so",
-                        next - dir, dir, name);
+                        (unsigned int)(next - dir), dir, name);
 
                if (dlopen(path, RTLD_NOW) != NULL) {
                        /* Found library.  If it didn't register itself,
@@ -335,7 +335,7 @@ static void *load_extension(const char *search_path, const char *prefix,
                        return ptr;
 
                snprintf(path, sizeof(path), "%.*s/%s%s.so",
-                        next - dir, dir, prefix, name);
+                        (unsigned int)(next - dir), dir, prefix, name);
                if (dlopen(path, RTLD_NOW) != NULL) {
                        if (is_target)
                                ptr = find_target(name, DONT_LOAD);