aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src
diff options
context:
space:
mode:
authorDoug Hogan <[email protected]>2019-01-14 23:05:17 -0800
committerDoug Hogan <[email protected]>2019-01-14 23:05:17 -0800
commit866f36b4b32712682cfdb0ec4225f7edff93e624 (patch)
tree81643e760fa69139bfd91cca8548eebe6e6962a0 /lib/crypto/c_src
parent4f0403027dfd109276823d32f10d85d7b3478ca8 (diff)
downloadotp-866f36b4b32712682cfdb0ec4225f7edff93e624.tar.gz
otp-866f36b4b32712682cfdb0ec4225f7edff93e624.tar.bz2
otp-866f36b4b32712682cfdb0ec4225f7edff93e624.zip
Fix documentation and argc check in engine_get_first_nif()
* This was documented as sending in an argument but it doesn't read argv.
Diffstat (limited to 'lib/crypto/c_src')
-rw-r--r--lib/crypto/c_src/engine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto/c_src/engine.c b/lib/crypto/c_src/engine.c
index 90fc8b66cd..ae23747cbf 100644
--- a/lib/crypto/c_src/engine.c
+++ b/lib/crypto/c_src/engine.c
@@ -574,14 +574,14 @@ ERL_NIF_TERM engine_unregister_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM
}
ERL_NIF_TERM engine_get_first_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
-{/* (Engine) */
+{/* () */
#ifdef HAS_ENGINE_SUPPORT
ERL_NIF_TERM ret, result;
ENGINE *engine;
ErlNifBinary engine_bin;
struct engine_ctx *ctx = NULL;
- if (argc != 1)
+ if (argc != 0)
goto bad_arg;
if ((engine = ENGINE_get_first()) == NULL) {