diff options
| -rw-r--r-- | logs.c | 11 | 
1 files changed, 1 insertions, 10 deletions
@@ -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 ();  | 
