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 05e7147..1fb1ff9 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);