diff options
author | ache <ache@FreeBSD.org> | 2006-05-22 05:04:53 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2006-05-22 05:04:53 +0000 |
commit | cdef42a42ed9e0e95e73f7ca6c8cf908a3cf6465 (patch) | |
tree | d34c226cdd50cf25b8e24abecea9ab8ff83335bf /lib | |
parent | 7970b163291fa7c67cbc61dacd51818863a80b15 (diff) | |
download | FreeBSD-src-cdef42a42ed9e0e95e73f7ca6c8cf908a3cf6465.zip FreeBSD-src-cdef42a42ed9e0e95e73f7ca6c8cf908a3cf6465.tar.gz |
Remove the kludge, as asked in the Makefile:
# If you bump SHLIB_MAJOR, remove the kluge from gen/gethostname.c.
Reviewed by: ume
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/gethostname.c | 3 |
1 files changed, 0 insertions, 3 deletions
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) { |