]> granicus.if.org Git - file/commitdiff
fix printf format
authorChristos Zoulas <christos@zoulas.com>
Sun, 31 Aug 2008 04:52:03 +0000 (04:52 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sun, 31 Aug 2008 04:52:03 +0000 (04:52 +0000)
src/softmagic.c

index 39a7fc856520ccdd43a2174416977e83784840b3..d1b7b0e7fe5101e4d533287904e289607ef55ed5 100644 (file)
@@ -38,7 +38,7 @@
 
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: softmagic.c,v 1.120 2008/07/28 17:25:21 christos Exp $")
+FILE_RCSID("@(#)$File: softmagic.c,v 1.121 2008/08/31 04:52:03 christos Exp $")
 #endif /* lint */
 
 private int match(struct magic_set *, struct magic *, uint32_t,
@@ -542,7 +542,7 @@ mprint(struct magic_set *ms, struct magic *m)
                file_magerror(ms, "invalid m->type (%d) in mprint()", m->type);
                return -1;
        }
-       return(t);
+       return (int32_t)t;
 }
 
 
@@ -844,7 +844,7 @@ mcopy(struct magic_set *ms, union VALUETYPE *p, int type, int indir,
                        
                        /* check for pointer overflow */
                        if (src < s) {
-                               file_magerror(ms, "invalid offset %zu in mcopy()",
+                               file_magerror(ms, "invalid offset %u in mcopy()",
                                    offset);
                                return -1;
                        }