]> git.saurik.com Git - apple/configd.git/blobdiff - scutil.tproj/notifications.c
configd-699.1.5.tar.gz
[apple/configd.git] / scutil.tproj / notifications.c
index 19507fc74c832c8ced54acefa6cccf1b5bdaabc5..0ccd02ccbe3b5ec0e4e99d1fb19d732070375293 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000-2004, 2008-2012 Apple Inc. All rights reserved.
+ * Copyright (c) 2000-2005, 2008-2014 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -373,7 +373,7 @@ do_notify_file(int argc, char **argv)
        bufPtr = &buf.data[0];
        needed = sizeof(buf.gotID);
        while (needed > 0) {
-               int     got;
+               ssize_t got;
 
                got = read(fd, bufPtr, needed);
                if (got == -1) {
@@ -388,7 +388,7 @@ do_notify_file(int argc, char **argv)
                        break;
                }
 
-               SCPrint(TRUE, stdout, CFSTR("Received %d bytes.\n"), got);
+               SCPrint(TRUE, stdout, CFSTR("Received %ld bytes.\n"), got);
                bufPtr += got;
                needed -= got;
        }