X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprocess.c;h=edcd5a00ddad2c878b19531a518ccf497f171d6a;hp=f149d7cd11051817cba12f17c767aaac9c37e2de;hb=006591efe5b3e6c64040d267f8c0477468abf2bf;hpb=f75dcef72a81a337e847adf0bae54198894f65b9 diff --git a/src/process.c b/src/process.c index f149d7cd..edcd5a00 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.46 2002/09/09 21:24:41 guus Exp $ + $Id: process.c,v 1.1.2.49 2002/09/15 14:55:53 guus Exp $ */ #include "config.h" @@ -220,8 +220,6 @@ void _execute_script(const char *scriptname, char **envp) __attribute__ ((noreturn)); void _execute_script(const char *scriptname, char **envp) { - char *s; - cp(); while(*envp) @@ -372,9 +370,7 @@ RETSIGTYPE sigint_handler(int a) debug_lvl = saved_debug_lvl; saved_debug_lvl = 0; } else { - syslog(LOG_NOTICE, - _ - ("Temporarily setting debug level to 5. Kill me with SIGINT again to go back to level %d."), + syslog(LOG_NOTICE, _("Temporarily setting debug level to 5. Kill me with SIGINT again to go back to level %d."), debug_lvl); saved_debug_lvl = debug_lvl; debug_lvl = 5; @@ -423,7 +419,7 @@ RETSIGTYPE ignore_signal_handler(int a) struct { int signal; - void (*handler) (int); + void (*handler)(int); } sighandlers[] = { { SIGHUP, sighup_handler}, { @@ -471,9 +467,7 @@ void setup_signals(void) for(i = 0; sighandlers[i].signal; i++) { act.sa_handler = sighandlers[i].handler; if(sigaction(sighandlers[i].signal, &act, NULL) < 0) - fprintf(stderr, - _ - ("Installing signal handler for signal %d (%s) failed: %s\n"), + fprintf(stderr, _("Installing signal handler for signal %d (%s) failed: %s\n"), sighandlers[i].signal, strsignal(sighandlers[i].signal), strerror(errno)); }