]> git.ipfire.org Git - thirdparty/lldpd.git/commit
priv: rename "gethostbyname" priv function to "gethostname"
authorVincent Bernat <vincent@bernat.im>
Wed, 28 Jan 2015 13:50:12 +0000 (14:50 +0100)
committerVincent Bernat <vincent@bernat.im>
Wed, 28 Jan 2015 13:57:23 +0000 (14:57 +0100)
commit1fa7d39f5b9d27483c84ef5646cf1ff462b5c5ae
treee8db55c9a30fc94b19ddd2aeeb3b1f2e0ad4e710
parentd162d78546598bad04b297ffd66b73890c9a21e8
priv: rename "gethostbyname" priv function to "gethostname"

Because, it is not a wrapper around `gethostbyname()` but a way to get
local hostname. It currently uses `gethostbyname()` and therefore relies
on the presence of an IPv4 address in the system.
src/daemon/lldpd.c
src/daemon/lldpd.h
src/daemon/priv.c