aboutsummaryrefslogtreecommitdiff
path: root/libXfont/src/fontfile/bunzip2.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-10-01 12:23:16 +0200
committermarha <marha@users.sourceforge.net>2013-10-01 12:28:08 +0200
commit6dd755aa923291db2501cc5c22e409c41a70e3c1 (patch)
treefa88a321afc13657f7687a25d466f49151c9599a /libXfont/src/fontfile/bunzip2.c
parenta5391fdea94a7b827069c6f926f83a235076ccb4 (diff)
downloadvcxsrv-6dd755aa923291db2501cc5c22e409c41a70e3c1.tar.gz
vcxsrv-6dd755aa923291db2501cc5c22e409c41a70e3c1.tar.bz2
vcxsrv-6dd755aa923291db2501cc5c22e409c41a70e3c1.zip
Update following packages:
libXpm-3.5.11 libXaw-1.0.12 libXfont-1.4.6 libXrender-0.9.8 xproto-7.0.24 inputproto-2.3 xclock-1.0.7 xhost-1.0.6
Diffstat (limited to 'libXfont/src/fontfile/bunzip2.c')
-rw-r--r--libXfont/src/fontfile/bunzip2.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/libXfont/src/fontfile/bunzip2.c b/libXfont/src/fontfile/bunzip2.c
index 007fc7c3c..4078796f4 100644
--- a/libXfont/src/fontfile/bunzip2.c
+++ b/libXfont/src/fontfile/bunzip2.c
@@ -26,7 +26,9 @@
*/
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <X11/fonts/fontmisc.h>
#include <X11/fonts/bufio.h>
@@ -76,7 +78,7 @@ BufFilePushBZIP2 (BufFilePtr f)
BufBzip2FileClose);
}
-static int
+static int
BufBzip2FileClose(BufFilePtr f, int flag)
{
xzip_buf *x = (xzip_buf *)f->private;
@@ -86,15 +88,15 @@ BufBzip2FileClose(BufFilePtr f, int flag)
return 1;
}
-/* here's the real work.
+/* here's the real work.
-- we need to put stuff in f.buffer, update f.left and f.bufp,
then return the first byte (or BUFFILEEOF).
- -- to do this, we need to get stuff into avail_in, and next_in,
+ -- to do this, we need to get stuff into avail_in, and next_in,
and call BZ2_bzDecompress appropriately.
-- we may also need to add CRC maintenance - if BZ2_bzDecompress tells us
BZ_STREAM_END, we then have 4bytes CRC and 4bytes length...
*/
-static int
+static int
BufBzip2FileFill (BufFilePtr f)
{
xzip_buf *x = (xzip_buf *)f->private;
@@ -148,7 +150,7 @@ BufBzip2FileFill (BufFilePtr f)
}
}
f->bufp = x->b;
- f->left = BUFFILESIZE - x->z.avail_out;
+ f->left = BUFFILESIZE - x->z.avail_out;
if (f->left >= 0) {
f->left--;
@@ -159,7 +161,7 @@ BufBzip2FileFill (BufFilePtr f)
}
/* there should be a BufCommonSkip... */
-static int
+static int
BufBzip2FileSkip (BufFilePtr f, int c)
{
/* BufFileRawSkip returns the count unchanged.