diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-02 19:02:44 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-11-02 19:02:44 +0800 |
commit | 2dc136d20bd5963cc7827f1383c45d7ff62f2738 (patch) | |
tree | 583f67ea53d88718b1a7114f23bb6df6d9ffdd2f /util/indexuser.c | |
parent | 87e05ea3f3ac90f87736bff8141e245bf5572595 (diff) | |
download | pttbbs-2dc136d20bd5963cc7827f1383c45d7ff62f2738.tar pttbbs-2dc136d20bd5963cc7827f1383c45d7ff62f2738.tar.gz pttbbs-2dc136d20bd5963cc7827f1383c45d7ff62f2738.tar.bz2 pttbbs-2dc136d20bd5963cc7827f1383c45d7ff62f2738.tar.lz pttbbs-2dc136d20bd5963cc7827f1383c45d7ff62f2738.tar.xz pttbbs-2dc136d20bd5963cc7827f1383c45d7ff62f2738.tar.zst pttbbs-2dc136d20bd5963cc7827f1383c45d7ff62f2738.zip |
warning free
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@550 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/indexuser.c')
-rw-r--r-- | util/indexuser.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/util/indexuser.c b/util/indexuser.c index 3668269a..8b39fdd0 100644 --- a/util/indexuser.c +++ b/util/indexuser.c @@ -1,3 +1,5 @@ +/* $Id: indexuser.c,v 1.5 2002/11/02 11:02:44 in2 Exp $ */ +#define _UTIL_C_ #include "bbs.h" #define INDEXPATH BBSHOME"/index" @@ -36,17 +38,17 @@ int main() if(u.realname[0]) { sprintf(buf,INDEXPATH"/realname/%X",string_hash(u.realname)); - append_record(buf, &j, sizeof(j)); + append_record(buf, (fileheader_t*)&j, sizeof(j)); } if(u.email[0]) { sprintf(buf,INDEXPATH"/email/%X",string_hash(u.email)); - append_record(buf, &j, sizeof(j)); + append_record(buf, (fileheader_t*)&j, sizeof(j)); } if(u.ident[0]) { sprintf(buf,INDEXPATH"/ident/%X",string_hash(u.ident)); - append_record(buf, &j, sizeof(j)); + append_record(buf, (fileheader_t*)&j, sizeof(j)); } } return 0; |