summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2001-07-29 22:01:55 +0000
committertmm <tmm@FreeBSD.org>2001-07-29 22:01:55 +0000
commitb7e79511f87b41dc8e5c1f8b21568e09e240eeab (patch)
tree26f201087d6f2a16e4ca4ce4041a8cd76c0eae5e /lib/libc
parent3ea330259b3e8ef1484ee6356d792fede053a489 (diff)
downloadFreeBSD-src-b7e79511f87b41dc8e5c1f8b21568e09e240eeab.zip
FreeBSD-src-b7e79511f87b41dc8e5c1f8b21568e09e240eeab.tar.gz
Correct the old length argument passed to sysctlbyname to be a pointer
to a size_t (not to an int). MFC after: 2 days
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/devname.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/devname.c b/lib/libc/gen/devname.c
index f7532b1..c78ae2b 100644
--- a/lib/libc/gen/devname.c
+++ b/lib/libc/gen/devname.c
@@ -87,7 +87,8 @@ devname(dev, type)
mode_t type;
{
static char buf[SPECNAMELEN + 1];
- int i, j;
+ int i;
+ size_t j;
char *r;
/* First check the DB file. */
OpenPOWER on IntegriCloud