projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use logging.h instead of syslog.h
[tinc]
/
src
/
logging.c
diff --git
a/src/logging.c
b/src/logging.c
index
867dd3e
..
59d74d9
100644
(file)
--- a/
src/logging.c
+++ b/
src/logging.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: logging.c,v 1.
3 2002/04/13 10:43:10
zarq Exp $
+ $Id: logging.c,v 1.
4 2002/04/13 11:07:12
zarq Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-85,10
+85,10
@@
void log_syslog(int level, int priority, char *fmt, va_list ap)
vsyslog(priorities[priority], fmt, ap);
}
vsyslog(priorities[priority], fmt, ap);
}
-void syslog(int priority, char *fmt, ...)
+void
tinc_
syslog(int priority, char *fmt, ...)
{
/* Mapping syslog prio -> tinc prio */
{
/* Mapping syslog prio -> tinc prio */
- const int priorities[] = { TLOG_CRIT
, TLOG_CRIT, TLOG_CRIT, TLOG_ER
R,
+ const int priorities[] = { TLOG_CRIT
ICAL, TLOG_CRITICAL, TLOG_CRITICAL, TLOG_ERRO
R,
TLOG_NOTICE, TLOG_NOTICE, TLOG_INFO, TLOG_DEBUG };
avl_node_t *avlnode;
va_list args;
TLOG_NOTICE, TLOG_NOTICE, TLOG_INFO, TLOG_DEBUG };
avl_node_t *avlnode;
va_list args;