summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-25 02:24:52 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-25 02:24:52 +0800
commit073ef8262dc0b335ffa809843b5cebcc95558d40 (patch)
treeb948a5584977b1e63954f3549e4419ce3b46a8a6
parent1461897e382c0ae3094a9be99e6b5ce75c9fa118 (diff)
downloadpttbbs-073ef8262dc0b335ffa809843b5cebcc95558d40.tar
pttbbs-073ef8262dc0b335ffa809843b5cebcc95558d40.tar.gz
pttbbs-073ef8262dc0b335ffa809843b5cebcc95558d40.tar.bz2
pttbbs-073ef8262dc0b335ffa809843b5cebcc95558d40.tar.lz
pttbbs-073ef8262dc0b335ffa809843b5cebcc95558d40.tar.xz
pttbbs-073ef8262dc0b335ffa809843b5cebcc95558d40.tar.zst
pttbbs-073ef8262dc0b335ffa809843b5cebcc95558d40.zip
use bbs.h
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2428 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--util/bbsctl.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/util/bbsctl.c b/util/bbsctl.c
index 31ab69bf..b829818f 100644
--- a/util/bbsctl.c
+++ b/util/bbsctl.c
@@ -1,16 +1,5 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <dirent.h>
-#include <grp.h>
-#include <fcntl.h>
-#include <ctype.h>
-#include "config.h"
-#include "pttstruct.h"
-#include "perm.h"
+/* $Id$ */
+#include "bbs.h"
#ifdef __FreeBSD__
#include <sys/syslimits.h>
@@ -23,6 +12,8 @@
#endif
#ifdef __linux__
#include <linux/limits.h>
+ #include <sys/types.h>
+ #include <grp.h>
#define SU "/bin/su"
#define CP "/bin/cp"
#define KILLALL "/usr/bin/killall"