diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-07 05:35:23 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-07 05:35:23 +0800 |
commit | e8fc08b9800ba86163e5bf43469cdc9f4b478b13 (patch) | |
tree | eb2dcd75cad19ac57b7e9d9cc29c63a850d8ad86 /util/openvice.c | |
parent | c0a6419aeceaeb93d5d9ccde393236d67ff8c72f (diff) | |
download | pttbbs-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/openvice.c')
-rw-r--r-- | util/openvice.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/util/openvice.c b/util/openvice.c index 9b5e438f..b622eb55 100644 --- a/util/openvice.c +++ b/util/openvice.c @@ -1,14 +1,7 @@ -/* $Id: openvice.c,v 1.1 2002/03/07 15:13:46 in2 Exp $ */ +/* $Id: openvice.c,v 1.2 2002/06/06 21:34:14 in2 Exp $ */ /* 發票開獎小程式 */ -#include <stdio.h> -#include <string.h> -#include <stdlib.h> -#include <unistd.h> -#include <sys/types.h> -#include "config.h" -#include "pttstruct.h" -#include "util.h" +#include "bbs.h" #define VICE_SHOW BBSHOME "/etc/vice.show1" #define VICE_BINGO BBSHOME "/etc/vice.bingo" @@ -26,10 +19,9 @@ int main() FILE *fp = fopen(VICE_SHOW, "w"), *fb = fopen(VICE_BINGO, "w"); - extern struct utmpfile_t *utmpshm; resolve_utmp(); - srand(utmpshm->number); + srand(SHM->number); if (!fp || !fb ) perror("error open file"); |