From 8e74c5bee48f2ef363193044d5309a65e91c70d8 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 31 Oct 2001 20:37:54 +0000 Subject: [PATCH] Some very small fixes --- src/netutl.c | 4 ++-- src/process.c | 5 +++-- src/protocol.c | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/netutl.c b/src/netutl.c index e869e348..2d264a84 100644 --- a/src/netutl.c +++ b/src/netutl.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. - $Id: netutl.c,v 1.12.4.20 2001/10/27 12:13:17 guus Exp $ + $Id: netutl.c,v 1.12.4.21 2001/10/31 20:37:54 guus Exp $ */ #include "config.h" @@ -50,7 +50,7 @@ char *hostlookup(unsigned long addr) cp in.s_addr = addr; - get_config_int(lookup_config(config_tree, "Hostnames"), &lookup_hostname); + get_config_bool(lookup_config(config_tree, "Hostnames"), &lookup_hostname); if(lookup_hostname) host = gethostbyaddr((char *)&in, sizeof(in), AF_INET); diff --git a/src/process.c b/src/process.c index 7373a70c..7c8d31f6 100644 --- a/src/process.c +++ b/src/process.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. - $Id: process.c,v 1.1.2.30 2001/10/31 12:50:24 guus Exp $ + $Id: process.c,v 1.1.2.31 2001/10/31 20:37:54 guus Exp $ */ #include "config.h" @@ -409,7 +409,7 @@ ignore_signal_handler(int a, siginfo_t *info, void *b) { if(debug_lvl >= DEBUG_SCARY_THINGS) { - syslog(LOG_WARNING, _("Got unexpected signal %d (%s)"), a, strsignal(a)); + syslog(LOG_DEBUG, _("Ignored signal %d (%s)"), a, strsignal(a)); cp_trace(); } } @@ -450,6 +450,7 @@ setup_signals(void) sigaction(i, &act, NULL); } + /* If we didn't detach, allow coredumps */ if(!do_detach) sighandlers[3].handler = SIG_DFL; diff --git a/src/protocol.c b/src/protocol.c index 6cb80379..ef2a1826 100644 --- a/src/protocol.c +++ b/src/protocol.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. - $Id: protocol.c,v 1.28.4.116 2001/10/31 20:02:06 guus Exp $ + $Id: protocol.c,v 1.28.4.117 2001/10/31 20:37:54 guus Exp $ */ #include "config.h" @@ -983,7 +983,7 @@ cp int send_add_edge(connection_t *c, edge_t *e) { cp - return send_request(c, "%d %s %s %lx %d", ADD_NODE, + return send_request(c, "%d %s %s %lx %d", ADD_EDGE, e->from->name, e->to->name, e->options, e->weight); } -- 2.39.5