summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog1
-rw-r--r--pkgdetails.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 150abe6..32e1f32 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ debootstrap (0.4.0) UNRELEASED; urgency=low
* Make debootstrap team maintained under the d-i banner.
* Add Joey, Frans and Junichi as uploaders, remove JHM (not in the
d-i group).
+ * Make pkgdetails.c not need C99 extensions. (Closes: Bug#398977)
[ Joey Hess ]
* Drop support for sarge from the udeb.
diff --git a/pkgdetails.c b/pkgdetails.c
index 8403afb..27b9f6b 100644
--- a/pkgdetails.c
+++ b/pkgdetails.c
@@ -38,9 +38,9 @@ static void dogetdeps(char *pkgsfile, char **in_pkgs, int pkgc) {
while (fgets(buf, sizeof(buf), f)) {
if (*buf && buf[strlen(buf)-1] == '\n') buf[strlen(buf)-1] = '\0';
if (strncasecmp(buf, "Package:", 8) == 0) {
+ int any = 0;
skip = 1;
fieldcpy(cur_pkg, buf);
- int any = 0;
for (i = 0; i < pkgc; i++) {
if (!pkgs[i]) continue;
any = 1;