Skip to content

Commit

Permalink
Fix function declarations (-Wstrict-prototype warnings)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziemleszcz authored and gotthardp committed Aug 8, 2021
1 parent bc6621b commit b281fb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/engine.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "engine.h"

ENGINE *scep_engine_init() {
ENGINE *scep_engine_init(void) {
ENGINE *e = NULL;

ENGINE_load_builtin_engines();
Expand Down Expand Up @@ -113,7 +113,7 @@ ENGINE *scep_engine_init() {
return e;
}

ENGINE *scep_engine_load_dynamic() {
ENGINE *scep_engine_load_dynamic(void) {
ENGINE *e;
//it seems OpenSSL did not already have it. In this case we will try to load it dynamically
e = ENGINE_by_id("dynamic");
Expand Down
4 changes: 2 additions & 2 deletions src/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#define CAPI_CMD_STORE_NAME (ENGINE_CMD_BASE + 12) //this is the basic command to change the storename
#define CAPI_CMD_STORE_FLAGS (ENGINE_CMD_BASE + 13) //this is used to set the storelocation

ENGINE *scep_engine_init();
ENGINE *scep_engine_load_dynamic();
ENGINE *scep_engine_init(void);
ENGINE *scep_engine_load_dynamic(void);
void sscep_engine_read_key(EVP_PKEY **key, char *id, ENGINE *e);
void sscep_engine_read_key_old(EVP_PKEY **key, char *id, ENGINE *e);
void sscep_engine_read_key_new(EVP_PKEY **key, char *id, ENGINE *e);
Expand Down

0 comments on commit b281fb6

Please sign in to comment.