[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
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to