Commit 3cb7c5cf authored by Kurt Roeckx's avatar Kurt Roeckx
Browse files

Use void in all function definitions that do not take any arguments



Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
GH: #6208
parent d4a8ba77
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2486,7 +2486,7 @@ BIO *dup_bio_err(int format)
    return b;
}

void destroy_prefix_method()
void destroy_prefix_method(void)
{
    BIO_meth_free(prefix_method);
    prefix_method = NULL;
+3 −3
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ static void calculate_columns(DISPLAY_COLUMNS *dc)
    dc->columns = (80 - 1) / dc->width;
}

static int apps_startup()
static int apps_startup(void)
{
#ifdef SIGPIPE
    signal(SIGPIPE, SIG_IGN);
@@ -90,13 +90,13 @@ static int apps_startup()
    return 1;
}

static void apps_shutdown()
static void apps_shutdown(void)
{
    destroy_ui_method();
    destroy_prefix_method();
}

static char *make_config_name()
static char *make_config_name(void)
{
    const char *t;
    size_t len;
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ DEFINE_RUN_ONCE_STATIC(do_bio_type_init)
    return bio_type_lock != NULL;
}

int BIO_get_new_index()
int BIO_get_new_index(void)
{
    static CRYPTO_REF_COUNT bio_count = BIO_TYPE_START;
    int newval;
+2 −2
Original line number Diff line number Diff line
@@ -85,12 +85,12 @@ static CONF_METHOD WIN32_method = {
    def_load
};

CONF_METHOD *NCONF_default()
CONF_METHOD *NCONF_default(void)
{
    return &default_method;
}

CONF_METHOD *NCONF_WIN32()
CONF_METHOD *NCONF_WIN32(void)
{
    return &WIN32_method;
}
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ static CTLOG_STORE_LOAD_CTX *ctlog_store_load_ctx_new();
 */
static void ctlog_store_load_ctx_free(CTLOG_STORE_LOAD_CTX* ctx);

static CTLOG_STORE_LOAD_CTX *ctlog_store_load_ctx_new()
static CTLOG_STORE_LOAD_CTX *ctlog_store_load_ctx_new(void)
{
    CTLOG_STORE_LOAD_CTX *ctx = OPENSSL_zalloc(sizeof(*ctx));

Loading