summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-26 03:27:17 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-26 03:27:17 +0800
commit42d9500f4b43e6f6c5680d1a2fd5065164698d1f (patch)
tree53146a367eecfa943caa4c211556fb70b8e20ebb /mbbsd/record.c
parent88e8fa575c7f9e8c4145e06676468f8f48eaad54 (diff)
downloadpttbbs-42d9500f4b43e6f6c5680d1a2fd5065164698d1f.tar
pttbbs-42d9500f4b43e6f6c5680d1a2fd5065164698d1f.tar.gz
pttbbs-42d9500f4b43e6f6c5680d1a2fd5065164698d1f.tar.bz2
pttbbs-42d9500f4b43e6f6c5680d1a2fd5065164698d1f.tar.lz
pttbbs-42d9500f4b43e6f6c5680d1a2fd5065164698d1f.tar.xz
pttbbs-42d9500f4b43e6f6c5680d1a2fd5065164698d1f.tar.zst
pttbbs-42d9500f4b43e6f6c5680d1a2fd5065164698d1f.zip
1. use setupmailusage instead touchmailusage
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2089 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
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