X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=333d00fcf11a38824d8c2da7f60ed802bc9903f6;hp=0e0bc15883c522ba068736675c28c0447ac9538d;hb=183a8edd22ba4bc682392c73ae02fc9e121eda68;hpb=3831f51a53088bfcc1d148fd54b3083afe7fde32 diff --git a/src/tincd.c b/src/tincd.c index 0e0bc158..333d00fc 100644 --- a/src/tincd.c +++ b/src/tincd.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: tincd.c,v 1.10.4.8 2000/08/17 16:51:08 guus Exp $ + $Id: tincd.c,v 1.10.4.10 2000/10/11 22:01:02 guus Exp $ */ #include "config.h" @@ -30,6 +30,7 @@ #include #include #include +#include #ifdef HAVE_SYS_IOCTL_H # include @@ -358,7 +359,7 @@ main(int argc, char **argv, char **envp) if(kill_tincd) exit(kill_other()); - if(read_config_file(configfilename)) + if(read_config_file(&config, configfilename)) return 1; setup_signals(); @@ -454,10 +455,10 @@ RETSIGTYPE sighuh(int a) { if(cp_file) - syslog(LOG_NOTICE, _("Got unexpected signal %d after %s line %d"), - a, cp_file, cp_line); + syslog(LOG_NOTICE, _("Got unexpected %s after %s line %d"), + strsignal(a), cp_file, cp_line); else - syslog(LOG_NOTICE, _("Got unexpected signal %d"), a); + syslog(LOG_NOTICE, _("Got unexpected %s"), strsignal(a)); } void