From 4e148546810a2902dff9444526e47c9569c79b64 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sat, 10 Jan 2015 21:12:46 +0900 Subject: Removed loging TERM env variable, thx epoch --- logs.c | 11 +---------- 1 file changed, 1 insertion(+), 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 (); -- cgit v1.2.3