diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-17 08:20:03 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-17 08:20:03 +0800 |
commit | e628bf7e42c8430e149ae546d421285228eb7e9a (patch) | |
tree | 5a0d0e3e2b94c6e5f5000523730f8793810d2244 | |
parent | 220dc117ecf494be98e9644588e4988ac3079e06 (diff) | |
download | pttbbs-e628bf7e42c8430e149ae546d421285228eb7e9a.tar pttbbs-e628bf7e42c8430e149ae546d421285228eb7e9a.tar.gz pttbbs-e628bf7e42c8430e149ae546d421285228eb7e9a.tar.bz2 pttbbs-e628bf7e42c8430e149ae546d421285228eb7e9a.tar.lz pttbbs-e628bf7e42c8430e149ae546d421285228eb7e9a.tar.xz pttbbs-e628bf7e42c8430e149ae546d421285228eb7e9a.tar.zst pttbbs-e628bf7e42c8430e149ae546d421285228eb7e9a.zip |
fix file_delete_lineptt.linux@2330
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2330 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | include/proto.h | 2 | ||||
-rw-r--r-- | mbbsd/file.c | 2 | ||||
-rw-r--r-- | mbbsd/friend.c | 4 |
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 { |