summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r--mbbsd/record.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index c8393f6f..a11b3a56 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -308,7 +308,7 @@ delete_range(char *fpath, int id1, int id2)
nol_t my;
char fullpath[STRLEN], *t;
int fdr, fdw, fd;
- int count;
+ int count, dcount=0;
nolfilename(&my, fpath);
@@ -356,6 +356,7 @@ delete_range(char *fpath, int id1, int id2)
} else {
//if (dashd(fullpath))
unlink(fullpath);
+ dcount++;
}
++count;
}
@@ -368,7 +369,7 @@ delete_range(char *fpath, int id1, int id2)
}
flock(fd, LOCK_UN);
close(fd);
- return 0;
+ return dcount;
}
#endif