summaryrefslogtreecommitdiffstats
path: root/mbbsd/edit.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 20:59:50 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 20:59:50 +0800
commit15135e4525a4294ce016f87e85841e7d3ec2164b (patch)
treec88bdd5afd05c2b5c5d08984b87fe103ec96cd9c /mbbsd/edit.c
parent7c0c9404b7353ca9c4bf08b0b9a3226554ea8031 (diff)
downloadpttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.tar
pttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.tar.gz
pttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.tar.bz2
pttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.tar.lz
pttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.tar.xz
pttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.tar.zst
pttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.zip
add 'const' qualifiers on function parameters.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2632 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r--mbbsd/edit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index 12524430..33bec6aa 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -623,7 +623,7 @@ delete_line(textline_t * line, int saved)
}
static int
-ask(char *prompt)
+ask(const char *prompt)
{
int ch;
@@ -1094,7 +1094,7 @@ restore_backup(void)
/* 引用文章 */
static int
-garbage_line(char *str)
+garbage_line(const char *str)
{
int qlevel = 0;
@@ -1233,7 +1233,7 @@ check_quote(void)
/* 檔案處理:讀檔、存檔、標題、簽名檔 */
static void
-read_file(char *fpath)
+read_file(const char *fpath)
{
FILE *fp;
@@ -1586,7 +1586,7 @@ setup_block_begin_end_number(short *begin, short *end)
* BLOCK_APPEND append mode
*/
static void
-block_save_to_file(char *fname, int mode)
+block_save_to_file(const char *fname, int mode)
{
textline_t *begin, *end;
char fp_tmpbuf[80];