aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-28 17:20:59 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-28 17:20:59 +0100
commit38163e5a7387ec945bfac6002ce3607b2eae343c (patch)
treeb1a6aa8e9b1ee5f259c8dd48b539cfb454572ab7
parentm (diff)
downloadsat-38163e5a7387ec945bfac6002ce3607b2eae343c.tar.gz
sat-38163e5a7387ec945bfac6002ce3607b2eae343c.tar.bz2
sat-38163e5a7387ec945bfac6002ce3607b2eae343c.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
-rw-r--r--src/satd-diminished.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/satd-diminished.c b/src/satd-diminished.c
index 268aceb..b18c5cf 100644
--- a/src/satd-diminished.c
+++ b/src/satd-diminished.c
@@ -23,6 +23,7 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
+#include <sys/stat.h>
#include <sys/socket.h>
@@ -85,7 +86,7 @@ main(int argc, char *argv[])
struct stat _attr;
/* Pick-up where we left off. */
- if (!fstat(CONN_FILENO, _attr)) {
+ if (!fstat(CONN_FILENO, &_attr)) {
fd = CONN_FILENO;
goto peek_again;
} else if (errno != EBADF) {