From 478d7ec1929c99450cfbfa05e02330658a8668bc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 4 Sep 2003 22:06:56 +0000 Subject: autoconf git-svn-id: file:///home/lennart/svn/public/syrep/trunk@30 07ea20a6-d2c5-0310-9e02-9ef735347d72 --- src/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c index c05b312..18f8fa4 100644 --- a/src/util.c +++ b/src/util.c @@ -224,10 +224,10 @@ int expand_file(int fd, off_t l) { #define BUFSIZE (32*1024) int copy_fd(int sfd, int dfd, off_t l) { - off_t sfo, dfo, msfo, mdfo; + off_t sfo = 0, dfo = 0, msfo = 0, mdfo = 0; + size_t m = 0, sm = 0, dm = 0; void *sp, *dp; - off_t m, sm, dm; - static off_t psize = 0; + static size_t psize = 0; #ifdef USE_SENDFILE if (!copy_fd_sendfile(sfd, dfd, l)) -- cgit