]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Removed warnings from atomicio.c
authorSteve Dickson <steved@redhat.com>
Tue, 20 Jul 2010 21:19:20 +0000 (17:19 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 9 Aug 2010 13:57:02 +0000 (09:57 -0400)
atomicio.c: In function 'atomicio':
atomicio.c:48: warning: comparison between signed and unsigned integer expressions

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/idmapd/atomicio.c

index 05e714791d990edb34fd7f2090d8e69868bf76c7..1fb1ff9ce5ba358237dff328fcf284b4eb5c57be 100644 (file)
@@ -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);