Silence warnings on the Alpha: don't assume size_t is an int.

This commit is contained in:
Dima Dorfman 2001-06-29 19:46:29 +00:00
parent 9a44bb7681
commit 427f984a67
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78982

View file

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