birdwm

birdwm - mrgrouse's daily driver fork of suckless' dwm. Contains many patches and is currently loosely maintained.
Log | Files | Refs | README | LICENSE

commit 01aec86acbfdd682e6e40359fe6fff513121aa39
parent e41242b12852c319f6a06d6995ea59976314864d
Author: mrgrouse <bdmfegys@duck.com>
Date:   Sun, 10 Aug 2025 20:26:47 -0400

birdwm.c: fix function prototypes casuing compile errors, and delete unecessary trailing spaces on two lines

Diffstat:
Mbirdwm.c | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/birdwm.c b/birdwm.c @@ -191,6 +191,7 @@ static void arrange(Monitor *m); static void arrangemon(Monitor *m); static void attach(Client *c); static void attachstack(Client *c); +static void autostart_exec(void); static void buttonpress(XEvent *e); static void checkotherwm(void); static void cleanup(void); @@ -216,7 +217,7 @@ static Atom getatomprop(Client *c, Atom prop); static Picture geticonprop(Window w, unsigned int *icw, unsigned int *ich); static int getrootptr(int *x, int *y); static long getstate(Window w); -static unsigned int getsystraywidth(); +static unsigned int getsystraywidth(void); static int gettextprop(Window w, Atom atom, char *text, unsigned int size); static void grabbuttons(Client *c, int focused); static void grabkeys(void); @@ -291,7 +292,6 @@ static int xerrordummy(Display *dpy, XErrorEvent *ee); static int xerrorstart(Display *dpy, XErrorEvent *ee); static void xrdb(const Arg *arg); static void zoom(const Arg *arg); -static void autostart_exec(void); /* variables */ static Systray *systray = NULL; @@ -341,7 +341,7 @@ static size_t autostart_len; /* execute command from autostart array */ static void -autostart_exec() { +autostart_exec(void) { const char *const *p; size_t i = 0; @@ -1056,7 +1056,7 @@ getatomprop(Client *c, Atom prop) } unsigned int -getsystraywidth() +getsystraywidth(void) { unsigned int w = 0; Client *i; @@ -1079,9 +1079,9 @@ geticonprop(Window win, unsigned int *picw, unsigned int *pich) unsigned long n, extra, *p = NULL; Atom real; - if (XGetWindowProperty(dpy, win, netatom[NetWMIcon], 0L, LONG_MAX, False, AnyPropertyType, + if (XGetWindowProperty(dpy, win, netatom[NetWMIcon], 0L, LONG_MAX, False, AnyPropertyType, &real, &format, &n, &extra, (unsigned char **)&p) != Success) - return None; + return None; if (n == 0 || format != 32) { XFree(p); return None; } unsigned long *bstp = NULL; @@ -1279,7 +1279,7 @@ killclient(const Arg *arg) } void -loadxrdb() +loadxrdb(void) { Display *display; char * resm;