summaryrefslogtreecommitdiffstats
path: root/mbbsd/gamble.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-13 11:20:04 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-13 11:20:04 +0800
commit6a428fb60d8ec6092d428b2e0f869a31f4890dc7 (patch)
treea0671ea2dc0168a9cb5625f867d553f6d0441efc /mbbsd/gamble.c
parent438c456b95eec0e5ac662ca3cf2386dff2c44bc7 (diff)
downloadpttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar
pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.gz
pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.bz2
pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.lz
pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.xz
pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.zst
pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.zip
replace time(NULL) by now
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@163 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/gamble.c')
-rw-r--r--mbbsd/gamble.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c
index a2fc3c37..64f04848 100644
--- a/mbbsd/gamble.c
+++ b/mbbsd/gamble.c
@@ -1,4 +1,4 @@
-/* $Id: gamble.c,v 1.2 2002/03/09 17:27:57 in2 Exp $ */
+/* $Id: gamble.c,v 1.3 2002/05/13 03:20:04 ptt Exp $ */
#include <stdio.h>
#include <time.h>
#include <string.h>
@@ -15,6 +15,7 @@ extern int usernum;
#ifndef _BBS_UTIL_C_
extern userec_t cuser;
extern int b_lines;
+extern time_t now;
#define MAX_ITEM 8 //最大 賭項(item) 個數
#define MAX_ITEM_LEN 30 //最大 每一賭項名字長度
@@ -28,7 +29,6 @@ int post_msg(char* bname, char* title, char *msg, char* author)
FILE *fp;
int bid;
fileheader_t fhdr;
- time_t now = time(0);
char genbuf[256];
/* 在 bname 版發表新文章 */
@@ -237,7 +237,6 @@ int openticket(int bid) {
char path[128],buf[256],outcome[128];
int i, money=0, count, bet, price, total = 0, ticket[8]={0,0,0,0,0,0,0,0};
boardheader_t *bh=getbcache(bid);
- time_t now = time(NULL);
FILE *fp, *fp1;
setbpath(path, bh->brdname);