summaryrefslogtreecommitdiffstats
path: root/util/openticket.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-07 05:35:23 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-07 05:35:23 +0800
commite8fc08b9800ba86163e5bf43469cdc9f4b478b13 (patch)
treeeb2dcd75cad19ac57b7e9d9cc29c63a850d8ad86 /util/openticket.c
parentc0a6419aeceaeb93d5d9ccde393236d67ff8c72f (diff)
downloadpttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar
pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.gz
pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.bz2
pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.lz
pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.xz
pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.tar.zst
pttbbs-e8fc08b9800ba86163e5bf43469cdc9f4b478b13.zip
only one shared memory
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@296 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/openticket.c')
-rw-r--r--util/openticket.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/util/openticket.c b/util/openticket.c
index 250d2238..33a8a54f 100644
--- a/util/openticket.c
+++ b/util/openticket.c
@@ -1,15 +1,6 @@
-/* $Id: openticket.c,v 1.3 2002/05/25 11:17:55 ptt Exp $ */
+/* $Id: openticket.c,v 1.4 2002/06/06 21:34:14 in2 Exp $ */
/* ¶}¼úªº utility */
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <time.h>
-#include <sys/types.h>
-#include "config.h"
-#include "pttstruct.h"
-#include "common.h"
-#include "util.h"
-#include "proto.h"
+#include "bbs.h"
static char *betname[8] = {"Ptt", "Jaky", "Action", "Heat",
"DUNK", "Jungo", "waiting", "wofe"};
@@ -49,7 +40,6 @@ int main()
time_t now = time(NULL);
char des[MAX_DES][200] =
{"", "", "", ""};
- extern struct utmpfile_t *utmpshm;
if(passwd_mmap())
exit(1);
@@ -103,7 +93,7 @@ int main()
*/
resolve_utmp();
- bet = utmpshm->number % 8;
+ bet = SHM->number % 8;
/*