]> err.no Git - dpkg/commitdiff
dpkg-deb/info.c: Fix a compiler warning
authorFrank Lichtenheld <djpig@debian.org>
Tue, 4 Dec 2007 22:44:09 +0000 (23:44 +0100)
committerFrank Lichtenheld <djpig@debian.org>
Tue, 4 Dec 2007 22:44:09 +0000 (23:44 +0100)
Replace a %ld with %lu to fix compiler warning.

ChangeLog
dpkg-deb/info.c

index ab6b477451e901504000bb1f43047902c1eba132..bdf56de2d214b983df006241d34b031f8019b651 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-12-04  Frank Lichtenheld  <djpig@debian.org>
 
+       * dpkg-deb/info.c (info_spew): Replace a
+       %ld with %lu to fix compiler warning.
+
        * scripts/dpkg-genchanges.pl: Use comp_regex
        from Dpkg to correctly exlucde the .orig.tar
        even if it is not compressed with gzip.
index 4024d0296ae9b12698868ff62192b1088c6cfdbe..a76594818edaa8e4261a0d26c838e5b87f02cdb3 100644 (file)
@@ -96,7 +96,7 @@ static void info_spew(const char *debar, const char *directory,
     pathlen = strlen(directory) + strlen(component) + 2;
     controlfile = (void *) realloc((void *) controlfile, pathlen);
     if (!controlfile)
-      ohshite(_("realloc failed (%ld bytes)"), pathlen);
+      ohshite(_("realloc failed (%lu bytes)"), pathlen);
     memset(controlfile, 0, sizeof(controlfile));
 
     strcat(controlfile, directory);