mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-08 10:57:43 +02:00
- Fix warnings reported by the gcc analyzer.
This commit is contained in:
+4
-1
@@ -347,7 +347,10 @@ static volatile int do_quit = 0;
|
||||
/** signal handler for user quit */
|
||||
static RETSIGTYPE delayer_sigh(int sig)
|
||||
{
|
||||
printf("exit on signal %d\n", sig);
|
||||
char str[] = "exit on signal \n";
|
||||
str[15] = '0' + (sig/10)%10;
|
||||
str[16] = '0' + sig%10;
|
||||
write(STDOUT_FILENO, str, strlen(str));
|
||||
do_quit = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user