B1;3802;0cOn Sun, 10.05.15 10:18, Zbigniew Jędrzejewski-Szmek 
(zbys...@kemper.freedesktop.org) wrote:

> +
> +        fflush(f);
> +        if (ferror(f))
> +                return log_error_errno(errno, "Failed to write unit file %s: 
> %m", unit);

Small note: please use fflush_and_check() for cases like this, it
makes this a bit shorter and safer...

(I changed this in git now)

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to