Remove the kludge, as asked in the Makefile:

# If you bump SHLIB_MAJOR, remove the kluge from gen/gethostname.c.

Reviewed by:    ume
This commit is contained in:
Andrey A. Chernov 2006-05-22 05:04:53 +00:00
parent 6c4a699dec
commit ba87bfdcd4

View File

@ -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) {