mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Silence warnings on the Alpha: don't assume size_t is an int.
This commit is contained in:
parent
9a44bb7681
commit
427f984a67
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78982
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue