diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-22 16:53:42 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-22 16:53:42 +0200 |
commit | f14fc93d4ba9f65a83c6c917ffb8400cf76ecba5 (patch) | |
tree | d63b9ddacfb93ecfe664491130c72e90de233709 | |
parent | Dirs are searchable (diff) | |
download | coopgammad-f14fc93d4ba9f65a83c6c917ffb8400cf76ecba5.tar.gz coopgammad-f14fc93d4ba9f65a83c6c917ffb8400cf76ecba5.tar.bz2 coopgammad-f14fc93d4ba9f65a83c6c917ffb8400cf76ecba5.tar.xz |
Bug fixes
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | src/coopgammad.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/coopgammad.c b/src/coopgammad.c index a2eddab..b93d0a7 100644 --- a/src/coopgammad.c +++ b/src/coopgammad.c @@ -660,7 +660,7 @@ static int print_method_and_site(int query) return -1; break; } - if (!methodname) + if (methodname != NULL) if (printf("%s\n", methodname) < 0) return -1; } @@ -698,10 +698,8 @@ static int print_method_and_site(int query) return -1; } - if (close(STDOUT_FILENO) < 0) - if (errno != EINTR) - return -1; - + if (fflush(stdout)) + return -1; return 0; } |