summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-12 11:23:27 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-12 11:23:27 +0800
commit7a21e08eca7c72e08fb2a5294b192ebf59a0565a (patch)
tree8e95a68d5495b14e2695916bc8e2e2afc07632f4 /mbbsd/record.c
parenta06ea9d2a57526434090ac255aa46cddd1c3ed52 (diff)
downloadpttbbs-7a21e08eca7c72e08fb2a5294b192ebf59a0565a.tar
pttbbs-7a21e08eca7c72e08fb2a5294b192ebf59a0565a.tar.gz
pttbbs-7a21e08eca7c72e08fb2a5294b192ebf59a0565a.tar.bz2
pttbbs-7a21e08eca7c72e08fb2a5294b192ebf59a0565a.tar.lz
pttbbs-7a21e08eca7c72e08fb2a5294b192ebf59a0565a.tar.xz
pttbbs-7a21e08eca7c72e08fb2a5294b192ebf59a0565a.tar.zst
pttbbs-7a21e08eca7c72e08fb2a5294b192ebf59a0565a.zip
move global variable to local, save another 536 bytes
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2591 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r--mbbsd/record.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index 28e6dee9..7de68780 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -443,7 +443,7 @@ safe_article_delete_range(char *direct, int from, int to)
#endif
int
-apply_record(char *fpath, int (*fptr) (), int size){
+apply_record(char *fpath, int (*fptr) (void *item, void *optarg), int size, void *arg){
char abuf[BUFSIZE];
int fp;
@@ -451,7 +451,7 @@ apply_record(char *fpath, int (*fptr) (), int size){
return -1;
while (read(fp, abuf, size) == (size_t)size)
- if ((*fptr) (abuf) == QUIT) {
+ if ((*fptr) (abuf, arg) == QUIT) {
close(fp);
return QUIT;
}