summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhshoexer <>2005-01-29 16:55:23 +0000
committerhshoexer <>2005-01-29 16:55:23 +0000
commit44248d3f5723370a5a0db73e91e775427c9e9ebc (patch)
treea7ebc38ad699f19fcc129136252024e45fbf81aa
parentf24586a2b2980dbb003f25aa83a6f6a82ef856c2 (diff)
downloadopenbsd-44248d3f5723370a5a0db73e91e775427c9e9ebc.tar.gz
openbsd-44248d3f5723370a5a0db73e91e775427c9e9ebc.tar.bz2
openbsd-44248d3f5723370a5a0db73e91e775427c9e9ebc.zip
adjust comment, open_dev_crypto() returns -1 on error.
ok markus@
-rw-r--r--src/lib/libcrypto/engine/hw_cryptodev.c2
-rw-r--r--src/lib/libssl/src/crypto/engine/hw_cryptodev.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/engine/hw_cryptodev.c b/src/lib/libcrypto/engine/hw_cryptodev.c
index 75a56058ca..0ca442af8a 100644
--- a/src/lib/libcrypto/engine/hw_cryptodev.c
+++ b/src/lib/libcrypto/engine/hw_cryptodev.c
@@ -164,7 +164,7 @@ static struct {
164}; 164};
165 165
166/* 166/*
167 * Return a fd if /dev/crypto seems usable, 0 otherwise. 167 * Return a fd if /dev/crypto seems usable, -1 otherwise.
168 */ 168 */
169static int 169static int
170open_dev_crypto(void) 170open_dev_crypto(void)
diff --git a/src/lib/libssl/src/crypto/engine/hw_cryptodev.c b/src/lib/libssl/src/crypto/engine/hw_cryptodev.c
index 75a56058ca..0ca442af8a 100644
--- a/src/lib/libssl/src/crypto/engine/hw_cryptodev.c
+++ b/src/lib/libssl/src/crypto/engine/hw_cryptodev.c
@@ -164,7 +164,7 @@ static struct {
164}; 164};
165 165
166/* 166/*
167 * Return a fd if /dev/crypto seems usable, 0 otherwise. 167 * Return a fd if /dev/crypto seems usable, -1 otherwise.
168 */ 168 */
169static int 169static int
170open_dev_crypto(void) 170open_dev_crypto(void)