Properly cast a size argument to an unsigned type.

Thanks to:	dd for noticing the need for a cast.
This commit is contained in:
roam 2001-06-29 22:31:17 +00:00
parent 2fcbdd664c
commit 21f14c9feb

View File

@ -119,7 +119,8 @@ getpath(void)
err(1, "getting path: sysctl(%s) - size only", pathctl);
if ((path = malloc(sz + 1)) == NULL) {
errno = ENOMEM;
err(1, "allocating %lu bytes for the path", (long)sz+1);
err(1, "allocating %lu bytes for the path",
(unsigned long)sz+1);
}
if (sysctl(mib, miblen, path, &sz, NULL, NULL) == -1)
err(1, "getting path: sysctl(%s)", pathctl);