Fix compilation in c89 mode. https://github.com/haikuports/haikuports/blob/master/app-arch/lha/patches/lha-1.14i.ac20191005.patchset --- src/bitio.c.orig +++ src/bitio.c @@ -19,8 +19,8 @@ fillbuf(n) /* Shift bitbuf n bits left, read n bits */ n -= bitcount; bitbuf = (bitbuf << bitcount) + (subbitbuf >> (CHAR_BIT - bitcount)); if (compsize != 0) { - compsize--; int c = getc(infile); + compsize--; if (c == EOF) { fatal_error("cannot read stream"); }