tests: Improve portability of fake-pinentry.
authorWerner Koch <wk@gnupg.org>
Wed, 26 Oct 2016 06:34:18 +0000 (08:34 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 26 Oct 2016 06:34:18 +0000 (08:34 +0200)
commit21b318452abbfe21c45c2a67dae0e3a81cff1090
treea71683e51cb1d41f3fb136cdf6c8ccd7329ed9b4
parent900c18f0b5f11cf2e9f30df5ec77ac511b533785
tests: Improve portability of fake-pinentry.

* tests/openpgp/fake-pinentry.c: Make all functions static.
(get_passphrase): s/unlink/remove/ because that is standard C.
(spacep): Rename to whitespace and change all callers.
(main): Move macro out of if-then chain.

Signed-off-by: Werner Koch <wk@gnupg.org>
tests/openpgp/fake-pinentry.c