summaryrefslogtreecommitdiffstats
path: root/mbbsd/record.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-09 17:18:44 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-09-09 17:18:44 +0800
commit83191c06b40c522464f7021cb25cc2367375f1ce (patch)
treeedf64932f25bda8a409a217c1a4487d9af7ed47e /mbbsd/record.c
parentbb00ae154f1cfc4672aa807926c19b0b5e64d8ea (diff)
downloadpttbbs-83191c06b40c522464f7021cb25cc2367375f1ce.tar
pttbbs-83191c06b40c522464f7021cb25cc2367375f1ce.tar.gz
pttbbs-83191c06b40c522464f7021cb25cc2367375f1ce.tar.bz2
pttbbs-83191c06b40c522464f7021cb25cc2367375f1ce.tar.lz
pttbbs-83191c06b40c522464f7021cb25cc2367375f1ce.tar.xz
pttbbs-83191c06b40c522464f7021cb25cc2367375f1ce.tar.zst
pttbbs-83191c06b40c522464f7021cb25cc2367375f1ce.zip
comments warn the bad code without error handling.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3145 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/record.c')
-rw-r--r--mbbsd/record.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index 0a4e9255..e8b56500 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -81,6 +81,7 @@ int
get_record(const char *fpath, void *rptr, int size, int id)
{
int fd = -1;
+ /* TODO merge with get_records() */
if (id >= 1 && (fd = open(fpath, O_RDONLY, 0)) != -1) {
if (lseek(fd, (off_t) (size * (id - 1)), SEEK_SET) != -1) {