diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-12-05 11:13:46 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-12-05 11:13:46 +0100 |
commit | 8fb6e77a618ce1a8151fab27445e0c3cc0241134 (patch) | |
tree | 73608a9d6880fa65c8046a09b3e6a055d9608ed4 /src/passphrase_helper.h | |
parent | accept flags (diff) | |
download | libpassphrase-8fb6e77a618ce1a8151fab27445e0c3cc0241134.tar.gz libpassphrase-8fb6e77a618ce1a8151fab27445e0c3cc0241134.tar.bz2 libpassphrase-8fb6e77a618ce1a8151fab27445e0c3cc0241134.tar.xz |
beginning of issue #2 on github
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/passphrase_helper.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/passphrase_helper.h b/src/passphrase_helper.h index 792498e..b8abb3a 100644 --- a/src/passphrase_helper.h +++ b/src/passphrase_helper.h @@ -379,6 +379,17 @@ #endif +#define xpipe(pair) \ + do { \ + if (pipe(pair)) \ + { \ + pair[0] = pair[1] = -1; \ + goto fail; \ + } \ + } while (0) + + + #endif |