diff --git a/util/reaper.c b/util/reaper.c index dad0948a4..1477eeaae 100644 --- a/util/reaper.c +++ b/util/reaper.c @@ -1,7 +1,8 @@ #define _UTIL_C_ + #include "bbs.h" +#include "var.h" -time4_t now; #undef MAX_GUEST_LIFE #undef MAX_LIFE diff --git a/util/uhash_loader.c b/util/uhash_loader.c index cc7fdd3a8..c3d359f92 100644 --- a/util/uhash_loader.c +++ b/util/uhash_loader.c @@ -1,13 +1,12 @@ /* standalone uhash loader -- jochang */ #include "bbs.h" #include "fnv_hash.h" +#include "var.h" void userec_add_to_uhash(int n, userec_t *id, int onfly); void fill_uhash(int onfly); void load_uhash(void); -SHM_t *SHM; - int main() { setgid(BBSGID); diff --git a/util/writemoney.c b/util/writemoney.c index 55335c81b..e6bdf77e4 100644 --- a/util/writemoney.c +++ b/util/writemoney.c @@ -1,9 +1,7 @@ /* 把 SHM 中的 money 全部寫回 .PASSWDS */ #define _UTIL_C_ #include "bbs.h" - -time4_t now; -extern SHM_t *SHM; +#include "var.h" int main() {