From: Steve Dickson Date: Tue, 20 Jul 2010 21:19:20 +0000 (-0400) Subject: Removed warnings from atomicio.c X-Git-Tag: nfs-utils-1-2-3-rc5~13 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=8a72ac3280ce8f9d0f48383d47dd06c80567bc09;p=nfs-utils.git Removed warnings from atomicio.c atomicio.c: In function 'atomicio': atomicio.c:48: warning: comparison between signed and unsigned integer expressions Signed-off-by: Steve Dickson --- diff --git a/utils/idmapd/atomicio.c b/utils/idmapd/atomicio.c index 05e7147..1fb1ff9 100644 --- a/utils/idmapd/atomicio.c +++ b/utils/idmapd/atomicio.c @@ -43,7 +43,8 @@ atomicio( size_t n) { char *s = _s; - ssize_t res, pos = 0; + ssize_t res; + size_t pos = 0; while (n > pos) { res = (f) (fd, s + pos, n - pos);