From cdef42a42ed9e0e95e73f7ca6c8cf908a3cf6465 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 22 May 2006 05:04:53 +0000 Subject: Remove the kludge, as asked in the Makefile: # If you bump SHLIB_MAJOR, remove the kluge from gen/gethostname.c. Reviewed by: ume --- lib/libc/gen/gethostname.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib') diff --git a/lib/libc/gen/gethostname.c b/lib/libc/gen/gethostname.c index fa22c11..481d519 100644 --- a/lib/libc/gen/gethostname.c +++ b/lib/libc/gen/gethostname.c @@ -50,9 +50,6 @@ gethostname(name, namelen) { int mib[2]; - /* Kluge to avoid ABI breakage. */ - namelen = (int)namelen; - mib[0] = CTL_KERN; mib[1] = KERN_HOSTNAME; if (sysctl(mib, 2, name, &namelen, NULL, 0) == -1) { -- cgit v1.1