summaryrefslogtreecommitdiff
path: root/uncompr.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2020-01-07 19:09:34 -0800
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-02-07 10:44:20 +0100
commite0a711cdde1d0390a922f80b69e3b365533b34cf (patch)
treed5f71e2e28a08b5e6dde57959679198a324ec49e /uncompr.c
parent550f98395c8677ae9b08ec39433f5137e5cea2c8 (diff)
Fixed formatting, 4 spaces for code intent, 2 spaces for preprocessor indent, initial function brace on the same line as definition, removed extraneous spaces and new lines.
Diffstat (limited to 'uncompr.c')
-rw-r--r--uncompr.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/uncompr.c b/uncompr.c
index 9f0ac2a..b2b6c14 100644
--- a/uncompr.c
+++ b/uncompr.c
@@ -8,9 +8,9 @@
#define ZLIB_INTERNAL
#include "zbuild.h"
#ifdef ZLIB_COMPAT
-# include "zlib.h"
+# include "zlib.h"
#else
-# include "zlib-ng.h"
+# include "zlib-ng.h"
#endif
/* ===========================================================================
@@ -40,8 +40,7 @@ int ZEXPORT PREFIX(uncompress2)(unsigned char *dest, z_size_t *destLen, const un
if (*destLen) {
left = *destLen;
*destLen = 0;
- }
- else {
+ } else {
left = 1;
dest = buf;
}
@@ -83,7 +82,6 @@ int ZEXPORT PREFIX(uncompress2)(unsigned char *dest, z_size_t *destLen, const un
err;
}
-int ZEXPORT PREFIX(uncompress)(unsigned char *dest, z_size_t *destLen, const unsigned char *source, z_size_t sourceLen)
-{
+int ZEXPORT PREFIX(uncompress)(unsigned char *dest, z_size_t *destLen, const unsigned char *source, z_size_t sourceLen) {
return PREFIX(uncompress2)(dest, destLen, source, &sourceLen);
}