summaryrefslogtreecommitdiff
path: root/tests/longmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/longmatch.c')
-rw-r--r--tests/longmatch.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/longmatch.c b/tests/longmatch.c
index ed3861571d9b7..1271e9ab1039c 100644
--- a/tests/longmatch.c
+++ b/tests/longmatch.c
@@ -17,25 +17,25 @@
#define ZSTD_STATIC_LINKING_ONLY
#include "zstd.h"
-int compress(ZSTD_CStream *ctx, ZSTD_outBuffer out, const void *data, size_t size) {
+static int
+compress(ZSTD_CStream *ctx, ZSTD_outBuffer out, const void *data, size_t size)
+{
ZSTD_inBuffer in = { data, size, 0 };
while (in.pos < in.size) {
ZSTD_outBuffer tmp = out;
const size_t rc = ZSTD_compressStream(ctx, &tmp, &in);
- if (ZSTD_isError(rc)) {
- return 1;
- }
+ if (ZSTD_isError(rc)) return 1;
}
- {
- ZSTD_outBuffer tmp = out;
+ { ZSTD_outBuffer tmp = out;
const size_t rc = ZSTD_flushStream(ctx, &tmp);
if (rc != 0) { return 1; }
}
return 0;
}
-int main(int argc, const char** argv) {
- ZSTD_CStream *ctx;
+int main(int argc, const char** argv)
+{
+ ZSTD_CStream* ctx;
ZSTD_parameters params;
size_t rc;
unsigned windowLog;