summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-13 18:00:17 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-13 18:00:17 +0800
commitc3a75ffa520157aa9c4de4bf57396da14028c445 (patch)
tree44c285710d6cd1bf3c3024e62343c7c753791d5f /mbbsd
parent959c38eb56c1325e4d815cb740a85301edfc4d4a (diff)
downloadpttbbs-c3a75ffa520157aa9c4de4bf57396da14028c445.tar
pttbbs-c3a75ffa520157aa9c4de4bf57396da14028c445.tar.gz
pttbbs-c3a75ffa520157aa9c4de4bf57396da14028c445.tar.bz2
pttbbs-c3a75ffa520157aa9c4de4bf57396da14028c445.tar.lz
pttbbs-c3a75ffa520157aa9c4de4bf57396da14028c445.tar.xz
pttbbs-c3a75ffa520157aa9c4de4bf57396da14028c445.tar.zst
pttbbs-c3a75ffa520157aa9c4de4bf57396da14028c445.zip
now's problem
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@166 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/cache.c5
-rw-r--r--mbbsd/mbbsd.c3
2 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 9d7162fc..ec85a4db 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -1,4 +1,4 @@
-/* $Id: cache.c,v 1.24 2002/05/13 05:22:51 ptt Exp $ */
+/* $Id: cache.c,v 1.25 2002/05/13 10:00:17 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -377,9 +377,8 @@ static int cmputmpuid(const void *i, const void *j){
void sort_utmp()
{
int count, i, ns;
- time_t now= time(0);
userinfo_t *uentp;
-
+ now=time(0);
if(now-utmpshm->uptime<60 && (now==utmpshm->uptime || utmpshm->busystate))
return; /* lazy sort */
utmpshm->busystate=1;
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 9a46738a..07f1b955 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1,4 +1,4 @@
-/* $Id: mbbsd.c,v 1.25 2002/05/13 03:20:04 ptt Exp $ */
+/* $Id: mbbsd.c,v 1.26 2002/05/13 10:00:17 ptt Exp $ */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -581,6 +581,7 @@ login_query ()
resolve_utmp ();
resolve_garbage ();
attach_uhash ();
+ now= time(0);
attempts = utmpshm->number;
show_file ("etc/Welcome", 1, -1, NO_RELOAD);
output ("1", 1);