diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/Makefile | 4 | ||||
-rw-r--r-- | util/reaper.c | 4 | ||||
-rw-r--r-- | util/tunepasswd.c | 10 |
3 files changed, 7 insertions, 11 deletions
diff --git a/util/Makefile b/util/Makefile index 54e26131..e4e88871 100644 --- a/util/Makefile +++ b/util/Makefile @@ -24,13 +24,13 @@ CPROG_WITH_UTIL= \ reaper buildAnnounce inndBM shmctl \ outmail chkhbf checkmoney merge_dir \ transman angel gamblegive checkdir \ - chesscountry + chesscountry tunepasswd buildir # 下面這些程式, 會直接被 compile CPROG_WITHOUT_UTIL= \ shmsweep uhash_loader showboard \ countalldice webgrep bbsrf initbbs \ - userlist tunepasswd buildir merge_passwd \ + userlist merge_passwd \ merge_board xchatd bbsmail # 下面這些程式會被 install diff --git a/util/reaper.c b/util/reaper.c index 2fc587e0..7904566d 100644 --- a/util/reaper.c +++ b/util/reaper.c @@ -49,7 +49,11 @@ int check(int n, userec_t *u) { int main(int argc, char **argv) { now = time(NULL); +#ifdef Solaris + openlog("reaper", LOG_PID, SYSLOG_FACILITY); +#else openlog("reaper", LOG_PID | LOG_PERROR, SYSLOG_FACILITY); +#endif chdir(BBSHOME); attach_SHM(); diff --git a/util/tunepasswd.c b/util/tunepasswd.c index 1d575dcc..b617fb77 100644 --- a/util/tunepasswd.c +++ b/util/tunepasswd.c @@ -1,13 +1,5 @@ /* $Id$ */ -#include <stdio.h> -#include <string.h> -#include <unistd.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <sys/file.h> -#include "config.h" -#include "pttstruct.h" -#include "common.h" +#include "bbs.h" int tune(int num) { int i, j, fin, fout; |