Browse Source

Fix enums

Martin Duquesnoy 12 years ago
parent
commit
a6b37e8b7e
4 changed files with 5 additions and 5 deletions
  1. 1 1
      src/config.c
  2. 1 1
      src/infobar.c
  3. 2 2
      src/infobar.h
  4. 1 1
      src/util.h

+ 1 - 1
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");

+ 1 - 1
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));

+ 2 - 2
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;

+ 1 - 1
src/util.h

@@ -1,4 +1,4 @@
-;/*
+/*
  *  wmfs2 by Martin Duquesnoy <xorg62@gmail.com> { for(i = 2011; i < 2111; ++i) ©(i); }
  *  For license, see COPYING.
  */