Code cleanup and removed heavy debug logging

This commit is contained in:
Michiel Broek 2007-03-03 14:38:30 +00:00
parent f3e8aeeaeb
commit 8a8b917527
4 changed files with 4 additions and 8 deletions

View File

@ -741,7 +741,6 @@ int Test_DOB(char *DOB)
UserAge--;
if (((l_date->tm_mon + 1) == month) && (l_date->tm_mday < day))
UserAge--;
Syslog('B', "DOB: Users age %d year", UserAge);
return TRUE;
}

View File

@ -4,7 +4,7 @@
* Purpose ...............: Inactivity timeout functions
*
*****************************************************************************
* Copyright (C) 1997-2004
* Copyright (C) 1997-2007
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@ -117,7 +117,6 @@ void alarm_set(int val)
{
signal(SIGALRM, (void (*))alarm_sig);
alarm(val);
Syslog('S', "Alarm set for %d seconds", val);
}
@ -133,6 +132,5 @@ void alarm_off()
{
alarm(0);
signal(SIGALRM, SIG_IGN);
Syslog('S', "Alarm is off");
}

View File

@ -466,8 +466,8 @@ void user(void)
Chg_Charset();
}
// setlocale(LC_CTYPE, getlocale(exitinfo.Charset));
// Syslog('b', "setlocale(LC_CTYPE, NULL) returns \"%s\"", printable(setlocale(LC_CTYPE, NULL), 0));
setlocale(LC_CTYPE, getlocale(exitinfo.Charset));
Syslog('b', "setlocale(LC_CTYPE, NULL) returns \"%s\"", printable(setlocale(LC_CTYPE, NULL), 0));
GetLastUser();
StartTime = xstrcpy(GetLocalHM());

View File

@ -4,7 +4,7 @@
* Purpose ...............: Zmodem receive
*
*****************************************************************************
* Copyright (C) 1997-2006
* Copyright (C) 1997-2007
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
@ -347,7 +347,6 @@ nxthdr:
continue;
}
moredata:
Syslog('Z', "%7ld ZMODEM%s ", rxbytes, Crc32r?" CRC-32":"");
Nopper();
alarm_on();
switch (c = zrdata(secbuf, MAXBLOCK)) {