From 48850f18f65f536446a01315245da99dfb94f8f8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 22 Apr 2006 10:57:59 +0000 Subject: compile with fascist gcc warnings and fix all issues found git-svn-id: file:///home/lennart/svn/public/syrep/trunk@103 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 964e36f..96b99c1 100644 --- a/src/util.c +++ b/src/util.c @@ -296,7 +296,7 @@ int copy_fd(int sfd, int dfd, off_t l) { while (l > 0) { off_t n; - size_t m = MIN(l, BUFSIZE); + m = MIN(l, BUFSIZE); if ((n = loop_read(sfd, buf, m)) != m) { @@ -761,13 +761,13 @@ ssize_t loop_write(int fd, const void *d, size_t l) { ssize_t r; if ((r = write(fd, p, l)) <= 0) - return p-(uint8_t*)d > 0 ? p-(uint8_t*) d : r; + return p-(const uint8_t*)d > 0 ? p-(const uint8_t*) d : r; p += r; l -= r; } - return p-(uint8_t*) d; + return p-(const uint8_t*) d; } char *snprint_off(char *s, size_t l, off_t off) { -- cgit