
3 Jan
2020
3 Jan
'20
11:19 a.m.
On Thu, Jan 02, 2020 at 05:42:39PM +0100, Fabiano FidĂȘncio wrote:
[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?
Yes, it should use ignore_value()
[snip]
Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|