Re: [PATCH 19/23] util: replace gethostname() with g_get_hostname()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]

> -    r = gethostname(virLogHostname, sizeof(virLogHostname));
> -    if (r == -1) {
> -        ignore_value(virStrcpyStatic(virLogHostname, "(unknown)"));
> -    } else {
> -        NUL_TERMINATE(virLogHostname);
> -    }
> +    (void)g_get_host_name();

Why not use ignore_return() here?

[snip]


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux