]> 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 bbc5df54bc27312ed81dd7f244003daff9f6f375..52567976dcac0814d576a0df8a4b2a4f4f14da83 100644 (file)
@@ -38,7 +38,7 @@
 
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: softmagic.c,v 1.119 2008/07/19 14:32:21 christos Exp $")
+FILE_RCSID("@(#)$File: softmagic.c,v 1.120 2008/07/28 17:25:21 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;
                        }