You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Build fix:
declared deinit function of plugins as deinit(void) instead of deinit().
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
const char *license; \
|
const char *license; \
|
||||||
void *mysql_api; \
|
void *mysql_api; \
|
||||||
int (*init)(char *, size_t, int, va_list); \
|
int (*init)(char *, size_t, int, va_list); \
|
||||||
int (*deinit)(); \
|
int (*deinit)(void); \
|
||||||
int (*options)(const char *option, const void *);
|
int (*options)(const char *option, const void *);
|
||||||
struct st_mysql_client_plugin
|
struct st_mysql_client_plugin
|
||||||
{
|
{
|
||||||
|
@@ -134,7 +134,7 @@ static int ma_sha256_scramble(unsigned char *scramble, size_t scramble_len,
|
|||||||
|
|
||||||
/* function prototypes */
|
/* function prototypes */
|
||||||
static int auth_caching_sha2_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql);
|
static int auth_caching_sha2_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql);
|
||||||
static int auth_caching_sha2_deinit();
|
static int auth_caching_sha2_deinit(void);
|
||||||
static int auth_caching_sha2_init(char *unused1,
|
static int auth_caching_sha2_init(char *unused1,
|
||||||
size_t unused2,
|
size_t unused2,
|
||||||
int unused3,
|
int unused3,
|
||||||
@@ -450,7 +450,7 @@ static int auth_caching_sha2_init(char *unused1 __attribute__((unused)),
|
|||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* {{{ auth_caching_sha2_deinit */
|
/* {{{ auth_caching_sha2_deinit */
|
||||||
static int auth_caching_sha2_deinit()
|
static int auth_caching_sha2_deinit(void)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_WINCRYPT)
|
#if defined(HAVE_WINCRYPT)
|
||||||
BCryptCloseAlgorithmProvider(Sha256Prov, 0);
|
BCryptCloseAlgorithmProvider(Sha256Prov, 0);
|
||||||
|
@@ -61,7 +61,7 @@ extern BCRYPT_ALG_HANDLE Sha512Prov;
|
|||||||
|
|
||||||
/* function prototypes */
|
/* function prototypes */
|
||||||
static int auth_ed25519_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql);
|
static int auth_ed25519_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql);
|
||||||
static int auth_ed25519_deinit();
|
static int auth_ed25519_deinit(void);
|
||||||
static int auth_ed25519_init(char *unused1,
|
static int auth_ed25519_init(char *unused1,
|
||||||
size_t unused2,
|
size_t unused2,
|
||||||
int unused3,
|
int unused3,
|
||||||
@@ -132,7 +132,7 @@ static int auth_ed25519_init(char *unused1 __attribute__((unused)),
|
|||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* {{{ auth_ed25519_deinit */
|
/* {{{ auth_ed25519_deinit */
|
||||||
static int auth_ed25519_deinit()
|
static int auth_ed25519_deinit(void)
|
||||||
{
|
{
|
||||||
#if defined(HAVE_WINCRYPT)
|
#if defined(HAVE_WINCRYPT)
|
||||||
BCryptCloseAlgorithmProvider(Sha512Prov, 0);
|
BCryptCloseAlgorithmProvider(Sha512Prov, 0);
|
||||||
|
@@ -212,7 +212,7 @@ static int trace_init(char *errormsg,
|
|||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
static int trace_deinit()
|
static int trace_deinit(void)
|
||||||
{
|
{
|
||||||
/* unregister plugin */
|
/* unregister plugin */
|
||||||
while(trace_info)
|
while(trace_info)
|
||||||
|
Reference in New Issue
Block a user