summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-08 08:28:37 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-08 08:28:37 +0800
commitb940b12c950e15e25e5bfcabcc43f300b06d1dfc (patch)
treeb97cd76e49ea00b486307ecd44bdd025f640feb5
parent9e0669abee6d8ec68a43c15866deeab754b2a81d (diff)
downloadpttbbs-b940b12c950e15e25e5bfcabcc43f300b06d1dfc.tar
pttbbs-b940b12c950e15e25e5bfcabcc43f300b06d1dfc.tar.gz
pttbbs-b940b12c950e15e25e5bfcabcc43f300b06d1dfc.tar.bz2
pttbbs-b940b12c950e15e25e5bfcabcc43f300b06d1dfc.tar.lz
pttbbs-b940b12c950e15e25e5bfcabcc43f300b06d1dfc.tar.xz
pttbbs-b940b12c950e15e25e5bfcabcc43f300b06d1dfc.tar.zst
pttbbs-b940b12c950e15e25e5bfcabcc43f300b06d1dfc.zip
Using `&func_name' instead of direct `func_name' as function pointer.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2477 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/voteboard.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/mbbsd/voteboard.c b/mbbsd/voteboard.c
index 28e9f7a6..443b4d4b 100644
--- a/mbbsd/voteboard.c
+++ b/mbbsd/voteboard.c
@@ -237,9 +237,9 @@ do_voteboard(int type)
generalnamecomplete("請輸入看板英文名稱:",
topic, IDLEN+1,
SHM->Bnumber,
- completeboard_compar,
- completeboard_permission,
- completeboard_getname);
+ &completeboard_compar,
+ &completeboard_permission,
+ &completeboard_getname);
snprintf(title, sizeof(title), "[廢除舊板] %s", topic);
snprintf(genbuf, sizeof(genbuf),
"%s\n\n%s%s\n", "廢除舊板", "英文名稱: ", topic);
@@ -250,9 +250,9 @@ do_voteboard(int type)
generalnamecomplete("請輸入看板英文名稱:",
topic, IDLEN+1,
SHM->Bnumber,
- completeboard_compar,
- completeboard_permission,
- completeboard_getname);
+ &completeboard_compar,
+ &completeboard_permission,
+ &completeboard_getname);
snprintf(title, sizeof(title), "[連署板主] %s", topic);
snprintf(genbuf, sizeof(genbuf), "%s\n\n%s%s\n%s%s", "連署板主", "英文名稱: ", topic, "申請 ID : ", cuser.userid);
strcat(genbuf, "\n申請政見: \n");
@@ -262,9 +262,9 @@ do_voteboard(int type)
generalnamecomplete("請輸入看板英文名稱:",
topic, IDLEN+1,
SHM->Bnumber,
- completeboard_compar,
- completeboard_permission,
- completeboard_getname);
+ &completeboard_compar,
+ &completeboard_permission,
+ &completeboard_getname);
snprintf(title, sizeof(title), "[罷免板主] %s", topic);
snprintf(genbuf, sizeof(genbuf),
"%s\n\n%s%s\n%s", "罷免板主", "英文名稱: ",