summaryrefslogtreecommitdiffstats
path: root/mbbsd/vote.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-13 00:36:08 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-13 00:36:08 +0800
commitdb8e4abee4060e1bf59f9feac2557dd1a72aa3c2 (patch)
tree046afa14e4d0244d01f4de832710863f93bd02bf /mbbsd/vote.c
parent2254eb52d8cb36f32c0151e0f1c3be5e5281274b (diff)
downloadpttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.tar
pttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.tar.gz
pttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.tar.bz2
pttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.tar.lz
pttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.tar.xz
pttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.tar.zst
pttbbs-db8e4abee4060e1bf59f9feac2557dd1a72aa3c2.zip
vedit revise
* move global save_title[] to local * vedit() vedit2() interface change * add veditfile() for editing normal file git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4582 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/vote.c')
-rw-r--r--mbbsd/vote.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c
index f64a6f7e..d08107d3 100644
--- a/mbbsd/vote.c
+++ b/mbbsd/vote.c
@@ -28,7 +28,7 @@ typedef struct {
} vote_buffer_t;
void
-b_suckinfile(FILE * fp, char *fname)
+b_suckinfile(FILE * fp, const char *fname)
{
FILE *sfp;
@@ -42,7 +42,7 @@ b_suckinfile(FILE * fp, char *fname)
}
void
-b_suckinfile_invis(FILE * fp, char *fname, const char *boardname)
+b_suckinfile_invis(FILE * fp, const char *fname, const char *boardname)
{
FILE *sfp;
@@ -617,8 +617,8 @@ vote_maintain(const char *bname)
vmsg("按任何鍵開始編輯此次 [投票宗旨]");
setbfile(buf, bname, vbuf.desc);
- aborted = vedit(buf, NA, NULL);
- if (aborted == -1) {
+ aborted = veditfile(buf);
+ if (aborted == EDIT_ABORTED) {
vmsg("取消此次投票");
return FULLUPDATE;
}