summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-17 05:54:56 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-17 05:54:56 +0800
commit68466d47bc2f2d879b3afcc312165f84dc2dec18 (patch)
tree92a599f7b82a7d184ec97eb1273152ae699f86e7
parent0375f7a3aae54827cca6680c7d9c96b111e1c442 (diff)
downloadpttbbs-68466d47bc2f2d879b3afcc312165f84dc2dec18.tar
pttbbs-68466d47bc2f2d879b3afcc312165f84dc2dec18.tar.gz
pttbbs-68466d47bc2f2d879b3afcc312165f84dc2dec18.tar.bz2
pttbbs-68466d47bc2f2d879b3afcc312165f84dc2dec18.tar.lz
pttbbs-68466d47bc2f2d879b3afcc312165f84dc2dec18.tar.xz
pttbbs-68466d47bc2f2d879b3afcc312165f84dc2dec18.tar.zst
pttbbs-68466d47bc2f2d879b3afcc312165f84dc2dec18.zip
no warning
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@180 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/admin.c4
-rw-r--r--mbbsd/bbs.c5
-rw-r--r--mbbsd/mail.c6
-rw-r--r--mbbsd/talk.c4
4 files changed, 10 insertions, 9 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index f97a3603..e7c51f3f 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -1,4 +1,4 @@
-/* $Id: admin.c,v 1.11 2002/05/13 03:20:04 ptt Exp $ */
+/* $Id: admin.c,v 1.12 2002/05/16 21:54:56 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -744,7 +744,7 @@ int scan_register_form(char *regfile, int automode, int neednum) {
char fdata[7][STRLEN];
char fname[STRLEN], buf[STRLEN];
char ans[4], *ptr, *uid;
- int n, unum;
+ int n = 0, unum = 0;
int nSelf = 0, nAuto = 0;
uid = cuser.userid;
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index d4367447..602e3bb4 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.9 2002/05/13 03:20:04 ptt Exp $ */
+/* $Id: bbs.c,v 1.10 2002/05/16 21:54:56 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -15,11 +15,12 @@
#include "proto.h"
extern struct bcache_t *brdshm;
+/*
static int g_board_names(boardheader_t *fhdr) {
AddNameList(fhdr->brdname);
return 0;
}
-
+*/
extern userec_t cuser;
extern void touchdircache(int bid);
extern int TagNum;
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 35b6a000..21871d5c 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -1,4 +1,4 @@
-/* $Id: mail.c,v 1.7 2002/05/13 03:20:04 ptt Exp $ */
+/* $Id: mail.c,v 1.8 2002/05/16 21:54:56 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -1309,13 +1309,13 @@ static int mail_waterball(int ent, fileheader_t *fhdr, char *direct)
cmode = (fname[0] != '0' && fname[0] != '1') ? 1 : fname[0] - '0';
sprintf(fname, BBSHOME "/jobspool/water.src.%s-%d",
- cuser.userid, now);
+ cuser.userid, (int)now);
sprintf(genbuf, "cp " BBSHOME "/home/%c/%s/%s %s",
cuser.userid[0], cuser.userid, fhdr->filename, fname);
system(genbuf);
/* dirty code ;x */
sprintf(fname, BBSHOME "/jobspool/water.des.%s-%d",
- cuser.userid, now);
+ cuser.userid, (int)now);
fp = fopen(fname, "wt");
fprintf(fp, "%s\n%s\n%d\n", cuser.userid, address, cmode);
fclose(fp);
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 4d44182f..6f63350c 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.35 2002/05/15 08:24:39 ptt Exp $ */
+/* $Id: talk.c,v 1.36 2002/05/16 21:54:56 in2 Exp $ */
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -1581,7 +1581,7 @@ static void pickup_user(void)
int fri_stat, bfriends_number, ifh_number, irh_number, hfm_number;
int savemode = currstat;
int i, sortedway; /* 只是loop有用到 */
- time_t diff, freshtime;
+ time_t diff, freshtime = 0;
pickup_t pklist[USHM_SIZE]; /* parameter Ptt註 */
/* num : 現在的游標位 */
/* foot: 此頁的腳腳 */