diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-28 17:20:59 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-28 17:20:59 +0100 |
commit | 38163e5a7387ec945bfac6002ce3607b2eae343c (patch) | |
tree | b1a6aa8e9b1ee5f259c8dd48b539cfb454572ab7 | |
parent | m (diff) | |
download | sat-38163e5a7387ec945bfac6002ce3607b2eae343c.tar.gz sat-38163e5a7387ec945bfac6002ce3607b2eae343c.tar.bz2 sat-38163e5a7387ec945bfac6002ce3607b2eae343c.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r-- | src/satd-diminished.c | 3 |
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) { |