summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2003-09-04 22:06:56 +0000
committerLennart Poettering <lennart@poettering.net>2003-09-04 22:06:56 +0000
commit478d7ec1929c99450cfbfa05e02330658a8668bc (patch)
tree23c2fcc272aea884d9b40256782ca2fe9cb561ba /src/util.c
parentb1a26b18ee147278397a2dbcc1f5741b55982c70 (diff)
autoconf
git-svn-id: file:///home/lennart/svn/public/syrep/trunk@30 07ea20a6-d2c5-0310-9e02-9ef735347d72
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 3 insertions, 3 deletions
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))