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:
parent
6c4a699dec
commit
ba87bfdcd4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user