From 38163e5a7387ec945bfac6002ce3607b2eae343c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 28 Dec 2015 17:20:59 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/satd-diminished.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #include #include +#include #include @@ -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) { -- cgit v1.2.3-70-g09d2