From 4db4ecf48f5749f368bdadc4c5a3865015eadb86 Mon Sep 17 00:00:00 2001 From: roam Date: Fri, 29 Jun 2001 22:31:17 +0000 Subject: Properly cast a size argument to an unsigned type. Thanks to: dd for noticing the need for a cast. --- sbin/kldconfig/kldconfig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sbin/kldconfig') diff --git a/sbin/kldconfig/kldconfig.c b/sbin/kldconfig/kldconfig.c index 3d48bf5..bd4015d 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); -- cgit v1.1