- sysctl(3), sethostname(3) and malloc(3) set errno, use it!
authorLiam J. Foy <liamfoy@dragonflybsd.org>
Mon, 21 Mar 2005 16:59:31 +0000 (16:59 +0000)
committerLiam J. Foy <liamfoy@dragonflybsd.org>
Mon, 21 Mar 2005 16:59:31 +0000 (16:59 +0000)
commit2c67e6a5e3ad09c482b6865c8648e20f01bdcb81
tree6525f2a3d5e2e5440f020e5f23843d9faf72721a
parent8383d6cfcbc87f133757b3e0f2ad9e420bf849b9
- sysctl(3), sethostname(3) and malloc(3) set errno, use it!
- Don't bother duplicating strings, just use optarg
- Use herror(3) when reporting an error for gethostbyaddr(3)
- Remove unnecessary header
bin/hostname/hostname.c