From 6a2a7525896ceb52ce538ff338f5c0330691767d Mon Sep 17 00:00:00 2001 From: ptt Date: Sun, 23 Jun 2002 03:52:31 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@343 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 3 ++- mbbsd/bbs.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/proto.h b/include/proto.h index ee32cd2d..8cccf526 100644 --- a/include/proto.h +++ b/include/proto.h @@ -1,4 +1,4 @@ -/* $Id: proto.h,v 1.21 2002/06/06 21:34:09 in2 Exp $ */ +/* $Id: proto.h,v 1.22 2002/06/23 03:50:56 ptt Exp $ */ #ifndef INCLUDE_PROTO_H #define INCLUDE_PROTO_H @@ -391,6 +391,7 @@ void initscr(); void Jaky_outs(char *str, int line); /* stuff */ +time_t gettime(int line, time_t dt); void setcalfile(char *buf, char *userid); void stand_title(char *title); void pressanykey(); diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 39ba5a1f..8b64022b 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1,4 +1,4 @@ -/* $Id: bbs.c,v 1.58 2002/06/23 03:50:14 ptt Exp $ */ +/* $Id: bbs.c,v 1.59 2002/06/23 03:52:31 ptt Exp $ */ #include "bbs.h" static void mail_by_link(char* owner, char* title, char* path) { @@ -1510,7 +1510,7 @@ int b_note_edit_bname(int bid) { outs(msg_cancel); pressanykey(); } else { - if(!getdata_buf(2, 0, "設定有效期限天?(n/Y)", buf, 3, LCECHO) + if(!getdata(2, 0, "設定有效期限天?(n/Y)", buf, 3, LCECHO) || buf[0]!='n') fh->bupdate = gettime(3, fh->bupdate?fh->bupdate:now); else -- cgit v1.2.3