summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--logs.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/logs.c b/logs.c
index c4b5948..130547c 100644
--- a/logs.c
+++ b/logs.c
@@ -3,8 +3,6 @@
int bbs_log_main( const char *syslname )
{
int ret=0;
- char *term=NULL;
- pid_t pid;
setlogmask (LOG_UPTO (LOG_NOTICE));
@@ -16,14 +14,7 @@ int bbs_log_main( const char *syslname )
openlog ( syslname, LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL1 );
}
- //maybe fake visitor
- term = getenv( "TERM" );
- pid = getpid();
- //why it gives warning on %z? that why just typecast and hope
- if ( term != NULL )
- syslog (LOG_NOTICE, "BBS visitor with TERM=%s pid=%d", term, (int)pid);
- else
- syslog( LOG_NOTICE, "BBS visitor pid=%d", (int)pid );
+ syslog( LOG_NOTICE, "BBS visitor" );
closelog ();