diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-09 21:10:30 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-09 21:10:30 +0800 |
commit | 6944237f6f9c290924af32be4c93343712e86147 (patch) | |
tree | 9fb9f9d9c0db95aab1d700da8bdbd734b4980147 /mbbsd/brc.c | |
parent | 83fdeaf59d8b442238981c5d6dd6854469848025 (diff) | |
download | pttbbs-6944237f6f9c290924af32be4c93343712e86147.tar pttbbs-6944237f6f9c290924af32be4c93343712e86147.tar.gz pttbbs-6944237f6f9c290924af32be4c93343712e86147.tar.bz2 pttbbs-6944237f6f9c290924af32be4c93343712e86147.tar.lz pttbbs-6944237f6f9c290924af32be4c93343712e86147.tar.xz pttbbs-6944237f6f9c290924af32be4c93343712e86147.tar.zst pttbbs-6944237f6f9c290924af32be4c93343712e86147.zip |
Makefile: add target "Solaris" depended on the old "solaris"
brc.c: big/little endian
osdep: add licence
git-svn-id: http://opensvn.csie.org/pttbbs/branches/victor.solaris@2186 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/brc.c')
-rw-r--r-- | mbbsd/brc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/brc.c b/mbbsd/brc.c index b3be8101..6c4ea053 100644 --- a/mbbsd/brc.c +++ b/mbbsd/brc.c @@ -96,8 +96,9 @@ time_t * brc_find_record(int bid, int *num) { char *p; - *num = 0; - p = brc_findrecord_in(brc_buf, brc_buf + brc_size, bid, (brcnbrd_t*)num); + brcnbrd_t tnum; + ptr = brc_findrecord_in(brc_buf, brc_buf + brc_size, bid, &tnum); + *num = tnum; if (p) return (time_t*)(p + sizeof(brcbid_t) + sizeof(brcnbrd_t)); *num = 0; |