]> jfr.im git - irc/quakenet/newserv.git/blobdiff - whowas/whowas.h
GLINES: fix null pointer deref in trustgline / trustungline
[irc/quakenet/newserv.git] / whowas / whowas.h
index 8d02892a7f1f8e6c73006b0917de1b08bcd23bf5..5c02bde0e27ed1ec8f815cc582039590b84ecc90 100644 (file)
@@ -1,9 +1,8 @@
 #ifndef __WHOWAS_H
 #define __WHOWAS_H
 
-#define WW_MAXAGE 3600
 #define WW_MAXCHANNELS 20
-#define WW_MAXENTRIES 100000
+#define WW_DEFAULT_MAXENTRIES 1000
 #define WW_MASKLEN (HOSTLEN + USERLEN + NICKLEN)
 #define WW_REASONLEN 512
 
@@ -25,7 +24,8 @@ typedef struct whowas {
   struct whowas *prev;
 } whowas;
 
-extern whowas whowasrecs[WW_MAXENTRIES];
+extern whowas *whowasrecs;
+extern int whowasmax;
 extern int whowasoffset; /* points to oldest record */
 
 #define WHOWAS_UNUSED 0