X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=obt%2Fxqueue.c;h=e5d2da317de43419a677e592d110f7b598dcf5b6;hb=a6141fe7a4895593d412a18bd24d1859d2d69c34;hp=2304ea426c4acf06045cb89d43ae6447aae25b6f;hpb=55b84316bb699fa530efe78d75ae8e1d57c1b57f;p=chaz%2Fopenbox diff --git a/obt/xqueue.c b/obt/xqueue.c index 2304ea42..e5d2da31 100644 --- a/obt/xqueue.c +++ b/obt/xqueue.c @@ -78,8 +78,8 @@ static inline void grow(void) { if (qend < qstart) { /* it wraps around to 0 right now */ for (i = 0; i <= qend; ++i) - q[newsz+i] = q[i]; - qend = newsz + qend; + q[qsz+i] = q[i]; + qend = qsz + qend; } qsz = newsz; @@ -113,7 +113,7 @@ static gboolean read_events(gboolean block) return sth; /* return if we read anything */ } -static void pop(gulong p) +static void pop(const gulong p) { /* remove the event */ --qnum;