From ba87bfdcd4598d50121b9f186385ff753ae233ad Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 22 May 2006 05:04:53 +0000 Subject: [PATCH] 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(-) diff --git a/lib/libc/gen/gethostname.c b/lib/libc/gen/gethostname.c index fa22c1133b8a..481d5199ddda 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) {