openbsd-ports/graphics/mplex/patches/patch-bitstrm_c
wcobb 63476d43e9 - pull in missing prototypes.
- fix format strings.
- remove unnecessary statics from headers, reduce executable size.
- disable insane verbosity that just slows down encoding.
2002-08-12 19:33:31 +00:00

30 lines
799 B
Plaintext

$OpenBSD: patch-bitstrm_c,v 1.1 2002/08/12 19:33:31 wcobb Exp $
--- bitstrm.c.orig Thu Jul 18 15:08:59 2002
+++ bitstrm.c Thu Jul 18 15:10:23 2002
@@ -18,6 +18,7 @@ bitstrm.c
#endif
+#include <stdlib.h>
#include <ctype.h>
@@ -140,7 +141,7 @@ int num;
/* otherwise returns 0 */
/* refill the buffer from the input device when the buffer becomes empty */
-int refill_buffer(bs)
+void refill_buffer(bs)
Bit_stream_struc *bs; /* bit stream structure */
{
register int i=bs->buf_size-2-bs->buf_byte_idx;
@@ -192,8 +193,6 @@ Bit_stream_struc *bs; /* bit stream st
}
}
-
-static char *he = "0123456789ABCDEF";
/* empty the buffer to the output device when the buffer becomes full */
void empty_buffer(bs, minimum)