From e8fc08b9800ba86163e5bf43469cdc9f4b478b13 Mon Sep 17 00:00:00 2001 From: in2 Date: Thu, 6 Jun 2002 21:35:23 +0000 Subject: only one shared memory git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@296 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/openticket.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'util/openticket.c') 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 -#include -#include -#include -#include -#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; /* -- cgit v1.2.3