On Fri, Jun 10, 2005 at 05:25:23PM +0200, Ralf S. Engelschall wrote: > Modified files: > openpkg-src/openpkg gzip.c > > Log: > Fix syntax error (declaring a variable within the function body is > allowed under ISO C99 only) > > Summary: > Revision Changes Path > 1.2 +2 -2 openpkg-src/openpkg/gzip.c > ____________________________________________________________________________ > > patch -p0 <<'@@ .' > Index: openpkg-src/openpkg/gzip.c > ============================================================================ > $ cvs diff -u -r1.1 -r1.2 gzip.c > --- openpkg-src/openpkg/gzip.c 10 Jun 2005 13:51:55 -0000 1.1 > +++ openpkg-src/openpkg/gzip.c 10 Jun 2005 15:25:22 -0000 1.2 > @@ -69,7 +69,7 @@ > */ > > #ifdef RCSID > -static char rcsid[] = "$Id: gzip.c,v 1.1 2005/06/10 13:51:55 ms Exp $"; > +static char rcsid[] = "$Id: gzip.c,v 1.2 2005/06/10 15:25:22 rse Exp $"; > #endif > > #include <config.h> > @@ -946,6 +946,7 @@ > { > struct stat ostat; /* stat for ofname */ > int flags = O_WRONLY | O_CREAT | O_EXCL | O_BINARY; > + char *baseout; > > if (ascii && decompress) { > flags &= ~O_BINARY; /* force ascii text mode */ > @@ -958,7 +959,6 @@ > } > /* Create the output file */ > remove_ofname = 1; > - char *baseout; > baseout = base_name(ofname); > strncpy(ofname, baseout, sizeof(ofname)); > ofname[sizeof(ofname) - 1] = '\0'; > A good eye. I just wonder if by now, there are any other lines of pre ISO C99 code in the bootstrap. If so then OpenPKG requires ISO99 and:
-Fix syntax error +Improve portability ...but the change is probably a positive one, so thanks for the good work. I've used your idea in the other two bootstrap packages. Regards, Michael -- Michael Schloh von Bennewitz <[EMAIL PROTECTED]> Software Engineer Development, Spacenet AG Joseph-Dollinger-Bogen 14, D-80807 Muenchen
pgpRXfkXbyPey.pgp
Description: PGP signature