summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/gethostname.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/gethostname.c')
-rw-r--r--lib/libc/gen/gethostname.c3
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) {
OpenPOWER on IntegriCloud