]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: replace gethostname() with g_get_hostname()
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 23 Dec 2019 14:55:45 +0000 (14:55 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 3 Jan 2020 15:42:13 +0000 (15:42 +0000)
commit26d9748ff114a060ee751959d108d062f737f5d9
treeeb8cc7763a7566d91e9e674f906ad533a813628f
parentb4d601ba87ade7fa1a3a4f9c0c268659c15a35c3
util: replace gethostname() with g_get_hostname()

Note the glib function returns a const string because it
caches the hostname using a one time thread initializer
function.

Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virlog.c
src/util/virutil.c