]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile.c: cast size_t to prevent compile failure on 386
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 3 Oct 2013 17:10:07 +0000 (12:10 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 3 Oct 2013 17:10:07 +0000 (12:10 -0500)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/confile.c

index a31479ed0d31ab227712b8a1e3f05e1538d21720..106ed4fce32203b67a48483fff82586b8a8dc804 100644 (file)
@@ -235,7 +235,7 @@ static int config_string_item_max(char **conf_item, const char *value,
                                  size_t max)
 {
        if (strlen(value) >= max) {
-               ERROR("%s is too long (>= %lu)", value, max);
+               ERROR("%s is too long (>= %lu)", value, (unsigned long)max);
                return -1;
        }