Re: r47629 - in trunk/packages/debootstrap: . debian
[Steve Kemp]
> Log:
> Fixed the compilation of pkgdetail.c. (#398977)
This change do not work.
> Modified: trunk/packages/debootstrap/pkgdetails.c
> ==============================================================================
> --- trunk/packages/debootstrap/pkgdetails.c (original)
> +++ trunk/packages/debootstrap/pkgdetails.c Fri Jun 22 14:50:39 2007
> @@ -20,7 +20,7 @@
> char cur_pkg[MAX_LINE];
> char cur_deps[MAX_LINE];
> char *pkgs[MAX_PKGS];
> - int i;
> + int i, skip;
> int skip;
> FILE *f;
This results in
pkgdetails.c:24: error: redeclaration of ?skip? with no linkage
> @@ -38,7 +38,7 @@
> 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;
> + any = 0;
> skip = 1;
> fieldcpy(cur_pkg, buf);
> for (i = 0; i < pkgc; i++) {
And this results in
pkgdetails.c:41: error: ?any? undeclared (first use in this function)
What went wrong?
Happy hacking,
--
Petter Reinholdtsen
Reply to: