summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/record.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index f5d5929c..616c8425 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -425,11 +425,13 @@ safe_article_delete_range(char *direct, int from, int to)
#endif
-int apply_record(char *fpath, int (*fptr) (), int size){
+int
+apply_record(char *fpath, int (*fptr) (), int size){
char abuf[BUFSIZE];
int fp;
- if((fp=open(fpath, O_RDONLY, 0))) return -1;
+ if((fp=open(fpath, O_RDONLY, 0)) == -1)
+ return -1;
while (read(fp, abuf, size) == (size_t)size)
if ((*fptr) (abuf) == QUIT) {