[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[or-cvs] removed loglevel from global namespace. severity level is s...



Update of /home/or/cvsroot/src/op
In directory moria.seul.org:/tmp/cvs-serv18515/src/op

Modified Files:
	op.c 
Log Message:
removed loglevel from global namespace. severity level is set using log() with a NULL format argument now. example: log(LOG_ERR,NULL);


Index: op.c
===================================================================
RCS file: /home/or/cvsroot/src/op/op.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- op.c	26 Jun 2002 22:45:50 -0000	1.1.1.1
+++ op.c	12 Jul 2002 18:14:16 -0000	1.2
@@ -8,6 +8,9 @@
 /*
  * Changes :
  * $Log$
+ * Revision 1.2  2002/07/12 18:14:16  montrose
+ * removed loglevel from global namespace. severity level is set using log() with a NULL format argument now. example: log(LOG_ERR,NULL);
+ *
  * Revision 1.1.1.1  2002/06/26 22:45:50  arma
  * initial commit: current code
  *
@@ -163,7 +166,6 @@
 /* global variables */
 
 /* default logging threshold */
-int loglevel = LOG_ERR;
 struct timeval conn_tout;
 struct timeval *conn_toutp = &conn_tout; 
 
@@ -702,6 +704,8 @@
   int islocal = 0; /* is the incoming connection local? */
 
   struct rlimit cd_limit; /* resource limit to prevent core dumps */
+
+  log(LOG_ERR,NULL);  /* assign severity level for logger */
   
   /* prevent core dump */
   retval = getrlimit(RLIMIT_CORE, &cd_limit);