On Sat, 31.05.14 23:29, Thomas H.P. Andersen (pho...@gmail.com) wrote:

> +const char *arg_dest = "/tmp";
> +
> +static LookupPaths lp;
> +static Hashmap *all_services;

Small addendum: we try to avoid static vars. WOuld be great to pass the
latter *both* through as params. We just try though, sometimes we take the
shortcut, but if it is easy we avoid static vars, and i think
this one of those cases where it is easy...

The arg_* vars can stay that way, they are kinda global process
parameters anyway, and we have them static in pretty much all our tools
like this...

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