aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-28 18:49:51 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-28 18:49:51 +0100
commit126ae9b1cce7a0b62131320c0a225ac0ce03f017 (patch)
tree0129cc0f5f3accb142dcda598ba6cdb46d94f3b1 /src
parentwhat was I thinging (diff)
downloadsat-126ae9b1cce7a0b62131320c0a225ac0ce03f017.tar.gz
sat-126ae9b1cce7a0b62131320c0a225ac0ce03f017.tar.bz2
sat-126ae9b1cce7a0b62131320c0a225ac0ce03f017.tar.xz
...
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/satd-diminished.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/satd-diminished.c b/src/satd-diminished.c
index d05823d..9e8edbd 100644
--- a/src/satd-diminished.c
+++ b/src/satd-diminished.c
@@ -23,6 +23,8 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
+#include <signal.h>
+#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/socket.h>
@@ -71,7 +73,7 @@
/**
* Signal that has been received, 0 if none.
*/
-static volatile sig_atomic_to received_signo = 0;
+static volatile sig_atomic_t received_signo = 0;
@@ -88,7 +90,7 @@ static void sighandler(int signo)
waitpid(-1, NULL, WNOHANG);
break;
default:
- received_signo = (sig_atomic_to)signo;
+ received_signo = (sig_atomic_t)signo;
break;
}
errno = saved_errno;