summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/proto.h2
-rw-r--r--mbbsd/file.c2
-rw-r--r--mbbsd/friend.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/include/proto.h b/include/proto.h
index 1047477e..ae0174db 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -245,7 +245,7 @@ void subscribe_newfav(void);
/* file */
int file_count_line(char *file);
int file_append_line(char *file, char *string);
-int file_delete_line(char *file, char *string, char case_sensitive);
+int file_delete_line(char *file, char *string, int case_sensitive);
int file_exist_record(char *file, char *string);
/* friend */
diff --git a/mbbsd/file.c b/mbbsd/file.c
index 7d3518c9..2c9374bf 100644
--- a/mbbsd/file.c
+++ b/mbbsd/file.c
@@ -30,7 +30,7 @@ int file_append_line(char *file, char *string)
#ifndef _BBS_UTIL_C_
/* Rename() is in kaede.c but not linked to util/ */
-int file_delete_line(char *file, char *string, char case_sensitive)
+int file_delete_line(char *file, char *string, int case_sensitive)
{
FILE *fp, *nfp = NULL;
char fnew[80];
diff --git a/mbbsd/friend.c b/mbbsd/friend.c
index 64761c2a..6da53f9f 100644
--- a/mbbsd/friend.c
+++ b/mbbsd/friend.c
@@ -188,7 +188,7 @@ friend_delete(char *uident, int type)
{
char fn[80];
setfriendfile(fn, type);
- file_delete_line(fn, uident);
+ file_delete_line(fn, uident, 0);
}
static void
@@ -199,7 +199,7 @@ delete_user_friend(char *uident, char *friend, int type)
if (type == FRIEND_ALOHA) {
#endif
sethomefile(fn, uident, "aloha");
- file_delete_line(fn, friend);
+ file_delete_line(fn, friend, 0);
#if 0
}
else {