From d35bce02eecb44630fc3932f712fa2c0b998af9e Mon Sep 17 00:00:00 2001 From: Thomas Moestl Date: Sun, 29 Jul 2001 22:01:55 +0000 Subject: [PATCH] Correct the old length argument passed to sysctlbyname to be a pointer to a size_t (not to an int). MFC after: 2 days --- lib/libc/gen/devname.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libc/gen/devname.c b/lib/libc/gen/devname.c index f7532b11d4b1..c78ae2bdf008 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. */