summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2010-07-20 17:19:20 -0400
committerSteve Dickson <steved@redhat.com>2010-08-09 09:57:02 -0400
commit8a72ac3280ce8f9d0f48383d47dd06c80567bc09 (patch)
tree98c025a68e02189b5694bf1e8bdbc70f71d08146
parent14becdb7bc23f075f786325f7e953c2f928fe385 (diff)
downloadnfs-utils-8a72ac3280ce8f9d0f48383d47dd06c80567bc09.tar.gz
nfs-utils-8a72ac3280ce8f9d0f48383d47dd06c80567bc09.tar.xz
nfs-utils-8a72ac3280ce8f9d0f48383d47dd06c80567bc09.zip
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 <steved@redhat.com>
-rw-r--r--utils/idmapd/atomicio.c3
1 files changed, 2 insertions, 1 deletions
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);