diff options
author | Doug Hogan <[email protected]> | 2019-01-14 23:05:17 -0800 |
---|---|---|
committer | Doug Hogan <[email protected]> | 2019-01-14 23:05:17 -0800 |
commit | 866f36b4b32712682cfdb0ec4225f7edff93e624 (patch) | |
tree | 81643e760fa69139bfd91cca8548eebe6e6962a0 /lib/crypto/c_src/engine.c | |
parent | 4f0403027dfd109276823d32f10d85d7b3478ca8 (diff) | |
download | otp-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/engine.c')
-rw-r--r-- | lib/crypto/c_src/engine.c | 4 |
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) { |