X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=cmd%2Fzstd%2Fenzstd.c;h=34bf3757bb91260c9916df8651ef66435044fabe;hb=57c9a2292a0606896e88e2b3fc33b54ffc34c9e5;hp=6dbbe985a6367080b0384a4a89151e512210d78e;hpb=77f88857fb809ba6ffa92029255f69c20572e6d2;p=tofuproxy.git diff --git a/cmd/zstd/enzstd.c b/cmd/zstd/enzstd.c index 6dbbe98..34bf375 100644 --- a/cmd/zstd/enzstd.c +++ b/cmd/zstd/enzstd.c @@ -47,19 +47,19 @@ main(int argc, char **argv) return EXIT_FAILURE; } - char *src = NULL; - char *dst = NULL; - int rc = EXIT_FAILURE; + char *src = NULL; + char *dst = NULL; + int rc = EXIT_FAILURE; size_t srcSize = 8; - src = malloc(srcSize); + src = malloc(srcSize); if (src == NULL) { fprintf(stderr, "can not allocate memory: %zu\n", srcSize); goto Exit; } - size_t dstSize = 0; + size_t dstSize = 0; size_t srcWantSize = 0; size_t dstWantSize = 0; - size_t n = 0; + size_t n = 0; for (;;) { n = fread(src, 1, 8, stdin); if (n < 8) { @@ -76,7 +76,7 @@ main(int argc, char **argv) if (srcWantSize > srcSize) { free(src); srcSize = srcWantSize; - src = malloc(srcSize); + src = malloc(srcSize); if (src == NULL) { fprintf(stderr, "can not allocate memory: %zu\n", srcSize); goto Exit; @@ -91,7 +91,7 @@ main(int argc, char **argv) if (dstWantSize > dstSize) { free(dst); dstSize = dstWantSize; - dst = malloc(dstSize); + dst = malloc(dstSize); if (dst == NULL) { fprintf(stderr, "can not allocate memory: %zu\n", dstSize); goto Exit;