]> git.ipfire.org Git - thirdparty/coreutils.git/commit
hostname: simplify
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 16:42:07 +0000 (08:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 20:07:39 +0000 (12:07 -0800)
commitaafa9bf069a90fa35c8b23c0fe7bc6e7646b41b4
tree2a572ba9a95f8b778476c52bd21864a89efbc262
parentdba02d1996f9037381ff65531f47d7a28e7fa2cd
hostname: simplify

* src/hostname.c (sethostname): Provide a substitute on all
platforms, to simplify the mainline code.
(main): Simplify.  Remove an IF_LINT.
Use main_exit rather than return.
src/hostname.c