From b6f8ef28e4e5101d06445e93334bae3d2daaca39 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Tue, 4 Mar 2008 18:28:39 -0300 Subject: [PATCH] liblbxutil ansification. --- src/image/mkg3states.c | 8 +++--- src/lbx_zlib/lbx_zlib_io.c | 57 +++++++++++++++++++++---------------------- src/lbx_zlib/reqstats.c | 2 +- 3 files changed, 33 insertions(+), 34 deletions(-) diff --git a/src/image/mkg3states.c b/src/image/mkg3states.c index 0e8fe36..58d031b 100644 --- a/src/image/mkg3states.c +++ b/src/image/mkg3states.c @@ -283,10 +283,10 @@ main (int argc, char *argv[]) exit(0); } -void write_null_mode_table (fd, table, name) -FILE *fd; -NullModeTable table; -char *name; +void write_null_mode_table ( + FILE *fd, + NullModeTable table, + char *name) { int i, j; char* outersep; diff --git a/src/lbx_zlib/lbx_zlib_io.c b/src/lbx_zlib/lbx_zlib_io.c index 12b29a3..e5b7293 100644 --- a/src/lbx_zlib/lbx_zlib_io.c +++ b/src/lbx_zlib/lbx_zlib_io.c @@ -70,9 +70,9 @@ writev(int fildes, const struct iovec *iov, int iovcnt) #endif int -InitZlibBuffer(b, size) - ZlibBufferPtr b; - int size; +InitZlibBuffer( + ZlibBufferPtr b, + int size) { if ((b->bufbase = (char *)Xalloc(size)) == NULL) return -1; @@ -83,8 +83,7 @@ InitZlibBuffer(b, size) } void -FreeZlibBuffer(b) - ZlibBufferPtr b; +FreeZlibBuffer(ZlibBufferPtr b) { if (b->bufbase) { Xfree(b->bufbase); @@ -99,11 +98,11 @@ FreeZlibBuffer(b) * -1 if error */ int -GetInputPtr(fd, inbuf, reqlen, ppkt) - int fd; - ZlibBufferPtr inbuf; - int reqlen; - unsigned char **ppkt; +GetInputPtr( + int fd, + ZlibBufferPtr inbuf, + int reqlen, + unsigned char **ppkt) { int readbytes; int gotbytes; @@ -142,10 +141,10 @@ GetInputPtr(fd, inbuf, reqlen, ppkt) */ int -StuffInput(inbuf, pkt, reqlen) - ZlibBufferPtr inbuf; - unsigned char *pkt; - int reqlen; +StuffInput( + ZlibBufferPtr inbuf, + unsigned char *pkt, + int reqlen) { int readbytes; char *last; @@ -164,9 +163,9 @@ StuffInput(inbuf, pkt, reqlen) } void -FreeInput(inbuf, len) - ZlibBufferPtr inbuf; - int len; +FreeInput( + ZlibBufferPtr inbuf, + int len) { inbuf->bufptr += len; if ((inbuf->bufcnt -= len) == 0) @@ -177,9 +176,9 @@ FreeInput(inbuf, len) * Reserve outlen bytes in the output buffer. */ char * -ReserveOutBuf(outbuf, outlen) - ZlibBufferPtr outbuf; - int outlen; +ReserveOutBuf( + ZlibBufferPtr outbuf, + int outlen) { int left; @@ -194,9 +193,9 @@ ReserveOutBuf(outbuf, outlen) * Commit previously reserved space as real output */ void -CommitOutBuf(outbuf, outlen) - ZlibBufferPtr outbuf; - int outlen; +CommitOutBuf( + ZlibBufferPtr outbuf, + int outlen) { outbuf->bufcnt += outlen; } @@ -207,9 +206,9 @@ CommitOutBuf(outbuf, outlen) * < 0 - write error */ int -FlushOutBuf(fd, outbuf) - int fd; - ZlibBufferPtr outbuf; +FlushOutBuf( + int fd, + ZlibBufferPtr outbuf) { int bytes; @@ -236,9 +235,9 @@ FlushOutBuf(fd, outbuf) * < 0 - write error */ int -FlushIovBuf(fd, iovbuf) - int fd; - struct iovec *iovbuf; +FlushIovBuf( + int fd, + struct iovec *iovbuf) { int bytes; int niov = 2; diff --git a/src/lbx_zlib/reqstats.c b/src/lbx_zlib/reqstats.c index 50545b8..c9acc92 100644 --- a/src/lbx_zlib/reqstats.c +++ b/src/lbx_zlib/reqstats.c @@ -497,7 +497,7 @@ do_decompress_with_stats (struct compress_private *priv) #else void -InitLbxReqStats() +InitLbxReqStats(void) {} #endif /* LBXREQSTATS */ -- 1.5.4.3