make use_spacer an enum
authorPhil Sutter <phil@nwl.cc>
Tue, 16 Dec 2008 01:56:26 +0000 (02:56 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 16 Dec 2008 01:56:26 +0000 (02:56 +0100)
commitd744f9bfbb192067187d928eeec0d61f7a78e528
tree6bc85492784d7e9d5bb8ad89af0ee76e6883b921
parent0720a4fbc99ca0fe9b31cc843fa780bdac37abaf
make use_spacer an enum

It was a static int before, holding the (already defined) enum's value,
which doesn't make sense. Also it's used only inside conky.c. Since
enums can't be assigned other values than what are defined, we can skip
checking for illegal spacer value at each invocation of spaced_print,
and then also drop the function name argument, which apparently didn't
make sense at all, because use_spacer is a global option.
src/conky.c
src/conky.h