summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-13 11:20:04 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-13 11:20:04 +0800
commit6a428fb60d8ec6092d428b2e0f869a31f4890dc7 (patch)
treea0671ea2dc0168a9cb5625f867d553f6d0441efc /mbbsd/mbbsd.c
parent438c456b95eec0e5ac662ca3cf2386dff2c44bc7 (diff)
downloadpttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar
pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.gz
pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.bz2
pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.lz
pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.xz
pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.tar.zst
pttbbs-6a428fb60d8ec6092d428b2e0f869a31f4890dc7.zip
replace time(NULL) by now
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@163 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 496ea00f..9a46738a 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1,4 +1,4 @@
-/* $Id: mbbsd.c,v 1.24 2002/04/28 19:35:29 in2 Exp $ */
+/* $Id: mbbsd.c,v 1.25 2002/05/13 03:20:04 ptt Exp $ */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -39,7 +39,7 @@ extern int t_lines, t_columns; /* Screen size / width */
extern int b_lines; /* Screen bottom line number: t_lines-1 */
extern userinfo_t *currutmp;
extern int curr_idle_timeout;
-
+extern time_t now;
static void do_aloha (char *hello);
#if 0
@@ -175,7 +175,6 @@ void
log_usies (char *mode, char *mesg)
{
char genbuf[200];
- time_t now = time (0);
if (!mesg)
sprintf (genbuf, cuser.userid[0] ? "%s %s %-12s Stay:%d (%s)" :
@@ -233,7 +232,7 @@ u_exit (char *mode)
log_usies (mode, NULL);
}
-static void
+void
system_abort ()
{
if (currmode)
@@ -778,11 +777,6 @@ static void
setup_utmp (int mode)
{
userinfo_t uinfo;
- /*
- char buf[80];
- char remotebuf[1024];
- time_t now = time(NULL);
- */
memset (&uinfo, 0, sizeof (uinfo));
uinfo.pid = currpid = getpid ();
uinfo.uid = usernum;