Don't ignore the return value from gethostname(3). It probably
cannot happen, but it silences Coverity.
Reviewed by: mav
MFC after: 2 weeks
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D26606