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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158807
@ -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