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;
return sth; /* return if we read anything */
}
-static void pop(gulong p)
+static void pop(const gulong p)
{
/* remove the event */
--qnum;