]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/expire/serv_expire.c
destroy_network_queue_room() is now called via the cleanup hook mechanism.
[citadel.git] / citadel / modules / expire / serv_expire.c
index 66b46570d54153bd0b202af2b454ca053ceb2b94..ee41a5f84f4546a19745ff799875732024db988d 100644 (file)
@@ -60,7 +60,7 @@
 #include "msgbase.h"
 #include "user_ops.h"
 #include "control.h"
-#include "serv_network.h"
+#include "serv_network.h"      /* Needed for defenition of UseTable */
 #include "tools.h"
 
 
@@ -622,6 +622,11 @@ int PurgeUseTable(void) {
        cdb_rewind(CDB_USETABLE);
        while(cdbut = cdb_next_item(CDB_USETABLE), cdbut != NULL) {
 
+       /*
+        * TODODRW: change this to create a new function time_t cdb_get_timestamp( struct cdbdata *)
+        * this will release this file from the serv_network.h
+        * Maybe it could be a macro that extracts and casts the reult
+        */
                 memcpy(&ut, cdbut->ptr,
                        ((cdbut->len > sizeof(struct UseTable)) ?
                         sizeof(struct UseTable) : cdbut->len));