summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-06-24 21:24:46 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-06-26 01:41:04 -0400
commit355b59e252c9910e44a1ad95c045ba8db58a4f6a (patch)
tree7428dd29c3fb1488b3b04a0bd7c4cb1fd6b5c597 /src/shared
parent76cc0bf682b944d4cb611f1b37c71fce140f8fe7 (diff)
journal/compress: add stream compression/decompression functions
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/copy.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/shared/copy.c b/src/shared/copy.c
index ebd6699838..3744797b95 100644
--- a/src/shared/copy.c
+++ b/src/shared/copy.c
@@ -29,9 +29,7 @@ int copy_bytes(int fdf, int fdt, off_t max_bytes) {
for (;;) {
char buf[PIPE_BUF];
ssize_t n, k;
- size_t m;
-
- m = sizeof(buf);
+ size_t m = sizeof(buf);
if (max_bytes != (off_t) -1) {