summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/ykfde.c4
-rw-r--r--udev/ykfde.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/ykfde.c b/bin/ykfde.c
index c0bcd25..44ead9a 100644
--- a/bin/ykfde.c
+++ b/bin/ykfde.c
@@ -340,12 +340,12 @@ out50:
out40:
/* close Yubikey */
- if (!yk_close_key(yk))
+ if (yk_close_key(yk) == 0)
perror("yk_close_key() failed");
out30:
/* release Yubikey */
- if (!yk_release())
+ if (yk_release() == 0)
perror("yk_release() failed");
out20:
diff --git a/udev/ykfde.c b/udev/ykfde.c
index 246425f..64d031d 100644
--- a/udev/ykfde.c
+++ b/udev/ykfde.c
@@ -337,12 +337,12 @@ out40:
out30:
/* close Yubikey */
- if (yk_close_key(yk) < 0)
+ if (yk_close_key(yk) == 0)
perror("yk_close_key() failed");
out20:
/* release Yubikey */
- if (yk_release() < 0)
+ if (yk_release() == 0)
perror("yk_release() failed");
out10: