diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-15 16:27:23 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-15 16:27:23 +0800 |
commit | 9efeebb36877b9afe475fa6df9ba1816ebbda926 (patch) | |
tree | e9de82dc6bf9c276b91252921e0aa121d51b6c53 /util/util_record.c | |
parent | 6168edfac6562867f6941db0524a11033dc165cb (diff) | |
download | pttbbs-9efeebb36877b9afe475fa6df9ba1816ebbda926.tar pttbbs-9efeebb36877b9afe475fa6df9ba1816ebbda926.tar.gz pttbbs-9efeebb36877b9afe475fa6df9ba1816ebbda926.tar.bz2 pttbbs-9efeebb36877b9afe475fa6df9ba1816ebbda926.tar.lz pttbbs-9efeebb36877b9afe475fa6df9ba1816ebbda926.tar.xz pttbbs-9efeebb36877b9afe475fa6df9ba1816ebbda926.tar.zst pttbbs-9efeebb36877b9afe475fa6df9ba1816ebbda926.zip |
warning free
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@850 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/util_record.c')
-rw-r--r-- | util/util_record.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/util_record.c b/util/util_record.c index 98b6e43f..80a7ff56 100644 --- a/util/util_record.c +++ b/util/util_record.c @@ -1,4 +1,4 @@ -/* $Id: util_record.c,v 1.3 2002/11/02 11:02:44 in2 Exp $ */ +/* $Id: util_record.c,v 1.4 2003/05/15 08:27:23 in2 Exp $ */ #include <stdio.h> #include <stdlib.h> #include <errno.h> @@ -135,7 +135,7 @@ int apply_record(char *fpath, int (*fptr)(), int size) { if(!(fp = fopen(fpath, "r"))) return -1; - while(fread(abuf, 1, size, fp) == size) + while(fread(abuf, 1, size, fp) == (unsigned)size) if((*fptr) (abuf) == QUIT) { fclose(fp); return QUIT; |