Просмотр исходного кода

dpkg-deb/info.c: Fix a compiler warning

Replace a %ld with %lu to fix compiler warning.
Frank Lichtenheld лет назад: 18
Родитель
Сommit
4666362bd3
2 измененных файлов с 4 добавлено и 1 удалено
  1. 3 0
      ChangeLog
  2. 1 1
      dpkg-deb/info.c

+ 3 - 0
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.

+ 1 - 1
dpkg-deb/info.c

@@ -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);