summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
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 /mbbsd/mail.c
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
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c6
1 files changed, 3 insertions, 3 deletions
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);