[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tinc/src process.c,1.1.2.55,1.1.2.56 protocol_subnet.c,1.1.4.12,1.1.4.13
Update of /home/CVS/tinc/src
In directory humbolt:/tmp/cvs-serv22894
Modified Files:
Tag: CABAL
process.c protocol_subnet.c
Log Message:
Use functions from logger.c
Index: process.c
===================================================================
RCS file: /home/CVS/tinc/src/process.c,v
retrieving revision 1.1.2.55
retrieving revision 1.1.2.56
diff -u -r1.1.2.55 -r1.1.2.56
--- process.c 2003/07/17 15:06:26 1.1.2.55
+++ process.c 2003/07/21 14:47:43 1.1.2.56
@@ -86,7 +86,7 @@
logger(LOG_NOTICE, _("Terminating"));
- closelog();
+ closelogger();
exit(c);
}
@@ -170,7 +170,7 @@
/* If we succeeded in doing that, detach */
- closelog();
+ closelogger();
if(do_detach) {
if(daemon(0, 0) < 0) {
Index: protocol_subnet.c
===================================================================
RCS file: /home/CVS/tinc/src/protocol_subnet.c,v
retrieving revision 1.1.4.12
retrieving revision 1.1.4.13
diff -u -r1.1.4.12 -r1.1.4.13
--- protocol_subnet.c 2003/07/17 15:06:27 1.1.4.12
+++ protocol_subnet.c 2003/07/21 14:47:43 1.1.4.13
@@ -58,7 +58,7 @@
cp();
if(sscanf(c->buffer, "%*d %*x " MAX_STRING " " MAX_STRING, name, subnetstr) != 2) {
- syslog(LOG_ERR, _("Got bad %s from %s (%s)"), "ADD_SUBNET", c->name,
+ logger(LOG_ERR, _("Got bad %s from %s (%s)"), "ADD_SUBNET", c->name,
c->hostname);
return -1;
}
@@ -66,7 +66,7 @@
/* Check if owner name is a valid */
if(check_id(name)) {
- syslog(LOG_ERR, _("Got bad %s from %s (%s): %s"), "ADD_SUBNET", c->name,
+ logger(LOG_ERR, _("Got bad %s from %s (%s): %s"), "ADD_SUBNET", c->name,
c->hostname, _("invalid name"));
return -1;
}
@@ -76,7 +76,7 @@
s = str2net(subnetstr);
if(!s) {
- syslog(LOG_ERR, _("Got bad %s from %s (%s): %s"), "ADD_SUBNET", c->name,
+ logger(LOG_ERR, _("Got bad %s from %s (%s): %s"), "ADD_SUBNET", c->name,
c->hostname, _("invalid subnet string"));
return -1;
}
@@ -148,7 +148,7 @@
cp();
if(sscanf(c->buffer, "%*d %*x " MAX_STRING " " MAX_STRING, name, subnetstr) != 2) {
- syslog(LOG_ERR, _("Got bad %s from %s (%s)"), "DEL_SUBNET", c->name,
+ logger(LOG_ERR, _("Got bad %s from %s (%s)"), "DEL_SUBNET", c->name,
c->hostname);
return -1;
}
@@ -156,7 +156,7 @@
/* Check if owner name is a valid */
if(check_id(name)) {
- syslog(LOG_ERR, _("Got bad %s from %s (%s): %s"), "DEL_SUBNET", c->name,
+ logger(LOG_ERR, _("Got bad %s from %s (%s): %s"), "DEL_SUBNET", c->name,
c->hostname, _("invalid name"));
return -1;
}
@@ -176,7 +176,7 @@
s = str2net(subnetstr);
if(!s) {
- syslog(LOG_ERR, _("Got bad %s from %s (%s): %s"), "DEL_SUBNET", c->name,
+ logger(LOG_ERR, _("Got bad %s from %s (%s): %s"), "DEL_SUBNET", c->name,
c->hostname, _("invalid subnet string"));
return -1;
}
--
Tinc-cvs: CVS changelog list for the tinc VPN daemon
Archive: http://mail.nl.linux.org/tinc-cvs/
Tinc site: http://tinc.nl.linux.org/