]> jfr.im git - irc/quakenet/newserv.git/blobdiff - whowas/whowas_channels.c
Update README.md
[irc/quakenet/newserv.git] / whowas / whowas_channels.c
index 518179171ae2ad7d94c7d4099a045c27657886c8..52d359d9d2f459cdfe1895aff1849c37b2de5b03 100644 (file)
@@ -1,5 +1,6 @@
 #include <string.h>
 #include <assert.h>
+#include <stdint.h>
 #include "../lib/version.h"
 #include "../nick/nick.h"
 #include "../chanindex/chanindex.h"
@@ -20,8 +21,6 @@ static void wwc_derefchannel(chanindex *cip) {
   uintptr_t *refcount = (uintptr_t *)&cip->exts[wwccext];
   (*refcount)--;
 
-  assert(*refcount >= 0);
-
   if (*refcount == 0)
     releasechanindex(cip);
 }