aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/kldconfig
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2001-06-29 22:31:17 +0000
committerPeter Pentchev <roam@FreeBSD.org>2001-06-29 22:31:17 +0000
commit5916bd20ba6635eb38342c1d2b8f8d830ba81bd6 (patch)
tree811f0aff413f5e006a8452bfad794183b1e3bc94 /sbin/kldconfig
parent04b09dd665580951c5029f82c684d053073eb265 (diff)
downloadsrc-5916bd20ba6635eb38342c1d2b8f8d830ba81bd6.tar.gz
src-5916bd20ba6635eb38342c1d2b8f8d830ba81bd6.zip
Properly cast a size argument to an unsigned type.
Thanks to: dd for noticing the need for a cast.
Notes
Notes: svn path=/head/; revision=79002
Diffstat (limited to 'sbin/kldconfig')
-rw-r--r--sbin/kldconfig/kldconfig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/kldconfig/kldconfig.c b/sbin/kldconfig/kldconfig.c
index 3d48bf5cbfe7..bd4015df6b10 100644
--- a/sbin/kldconfig/kldconfig.c
+++ b/sbin/kldconfig/kldconfig.c
@@ -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);