diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-04 17:48:27 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-04 17:48:27 +0800 |
commit | 431ac04533837d4d6bf8d01314f5c3e794e4a2a6 (patch) | |
tree | ea809f1e6a3bfe56fbc4f25d732231e1a6377c81 /cacheserver/utmpsync.c | |
parent | 911a0f4f78bf10384e32bd96cc2a2742b7005d94 (diff) | |
download | pttbbs-outtacache.tar pttbbs-outtacache.tar.gz pttbbs-outtacache.tar.bz2 pttbbs-outtacache.tar.lz pttbbs-outtacache.tar.xz pttbbs-outtacache.tar.zst pttbbs-outtacache.zip |
completeouttacache
git-svn-id: http://opensvn.csie.org/pttbbs/branches/outtacache@1687 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'cacheserver/utmpsync.c')
-rw-r--r-- | cacheserver/utmpsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cacheserver/utmpsync.c b/cacheserver/utmpsync.c index bebde137..13ffcf4e 100644 --- a/cacheserver/utmpsync.c +++ b/cacheserver/utmpsync.c @@ -15,7 +15,7 @@ int main(int argc, char **argv) index = -1; towrite(sfd, &index, sizeof(index)); - for( i = 0 ; i < MAX_ACTIVE ; ++i ) + for( i = 0 ; i < USHM_SIZE ; ++i ) if( towrite(sfd, &SHM->uinfo[i].uid, sizeof(SHM->uinfo[i].uid)) < 0 || towrite(sfd, SHM->uinfo[i].friend, sizeof(SHM->uinfo[i].friend)) < 0 || |