X-Git-Url: https://git.saurik.com/apple/configd.git/blobdiff_plain/6f870c060efc60e067aebc5814c89f110eec9777..78403150fdf95618c483be7dbe6bca9459b92a9f:/scutil.tproj/notifications.c diff --git a/scutil.tproj/notifications.c b/scutil.tproj/notifications.c index 19507fc..0ccd02c 100644 --- a/scutil.tproj/notifications.c +++ b/scutil.tproj/notifications.c @@ -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; }