diff --git a/src/config.c b/src/config.c index d62f016..34807f7 100644 --- a/src/config.c +++ b/src/config.c @@ -84,7 +84,7 @@ config_bars(void) struct conf_sec *sec, **ks; int screenid; char *elem; - Barpos pos = BarTop; + enum barpos pos = BarTop; /* [bars] */ sec = fetch_section_first(NULL, "bars"); diff --git a/src/infobar.c b/src/infobar.c index dd871c8..54e1215 100644 --- a/src/infobar.c +++ b/src/infobar.c @@ -168,7 +168,7 @@ infobar_elem_remove(struct element *e) } struct infobar* -infobar_new(struct screen *s, struct theme *theme, Barpos pos, const char *elem) +infobar_new(struct screen *s, struct theme *theme, enum barpos pos, const char *elem) { bool map; struct infobar *i = (struct infobar*)xcalloc(1, sizeof(struct infobar)); diff --git a/src/infobar.h b/src/infobar.h index ea759c4..7782e00 100644 --- a/src/infobar.h +++ b/src/infobar.h @@ -13,7 +13,7 @@ enum { ElemTag = 0, ElemLayout, ElemSelbar, ElemStatus, ElemCustom, ElemLast }; -struct infobar *infobar_new(struct screen *s, struct theme *theme, Barpos pos, const char *elem); +struct infobar *infobar_new(struct screen *s, struct theme *theme, enum barpos pos, const char *elem); void infobar_elem_update(struct infobar *i); void infobar_refresh(struct infobar *i); void infobar_remove(struct infobar *i); @@ -32,7 +32,7 @@ infobar_elem_placement(struct element *e) /* Bars placement management and usable space management */ static inline bool -infobar_placement(struct infobar *i, Barpos p) +infobar_placement(struct infobar *i, enum barpos p) { i->pos = p; i->geo = i->screen->ugeo; diff --git a/src/util.h b/src/util.h index 1f82b08..2b47e41 100644 --- a/src/util.h +++ b/src/util.h @@ -1,4 +1,4 @@ -;/* +/* * wmfs2 by Martin Duquesnoy { for(i = 2011; i < 2111; ++i) ©(i); } * For license, see COPYING. */