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
Fix for CONC-15
Removed redundant prototypes Fixed several prototypes with void parameters
This commit is contained in:
@@ -38,8 +38,8 @@ extern void _db_pargs_(uint _line_,const char *keyword);
|
|||||||
extern void _db_doprnt_ _VARARGS((const char *format,...));
|
extern void _db_doprnt_ _VARARGS((const char *format,...));
|
||||||
extern void _db_dump_(uint _line_,const char *keyword,const char *memory,
|
extern void _db_dump_(uint _line_,const char *keyword,const char *memory,
|
||||||
uint length);
|
uint length);
|
||||||
extern void _db_lock_file();
|
extern void _db_lock_file(void);
|
||||||
extern void _db_unlock_file();
|
extern void _db_unlock_file(void);
|
||||||
|
|
||||||
#define DBUG_ENTER(a) const char *_db_func_, *_db_file_; uint _db_level_; \
|
#define DBUG_ENTER(a) const char *_db_func_, *_db_file_; uint _db_level_; \
|
||||||
char **_db_framep_; \
|
char **_db_framep_; \
|
||||||
|
@@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
/* Error messages for mysql clients */
|
/* Error messages for mysql clients */
|
||||||
/* error messages for the demon is in share/language/errmsg.sys */
|
/* error messages for the demon is in share/language/errmsg.sys */
|
||||||
|
#ifndef _errmsg_h_
|
||||||
|
#define _errmsg_h_
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -74,3 +76,5 @@ extern const char *client_errors[]; /* Error messages */
|
|||||||
#define CR_PLUGIN_FUNCTION_NOT_SUPPORTED 2060
|
#define CR_PLUGIN_FUNCTION_NOT_SUPPORTED 2060
|
||||||
|
|
||||||
#define SQLSTATE_UNKNOWN "HY000"
|
#define SQLSTATE_UNKNOWN "HY000"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@@ -58,7 +58,7 @@ CHARSET_INFO *find_compiled_charset_by_name(const char *name);
|
|||||||
|
|
||||||
size_t mysql_cset_escape_quotes(const CHARSET_INFO *cset, char *newstr, const char *escapestr, size_t escapestr_len);
|
size_t mysql_cset_escape_quotes(const CHARSET_INFO *cset, char *newstr, const char *escapestr, size_t escapestr_len);
|
||||||
size_t mysql_cset_escape_slashes(const CHARSET_INFO *cset, char *newstr, const char *escapestr, size_t escapestr_len);
|
size_t mysql_cset_escape_slashes(const CHARSET_INFO *cset, char *newstr, const char *escapestr, size_t escapestr_len);
|
||||||
char* madb_get_os_character_set();
|
char* madb_get_os_character_set(void);
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
int madb_get_windows_cp(const char *charset);
|
int madb_get_windows_cp(const char *charset);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -88,9 +88,6 @@ extern "C" {
|
|||||||
|
|
||||||
#if defined(HAVE_STPCPY) && !defined(HAVE_mit_thread)
|
#if defined(HAVE_STPCPY) && !defined(HAVE_mit_thread)
|
||||||
#define strmov(A,B) stpcpy((A),(B))
|
#define strmov(A,B) stpcpy((A),(B))
|
||||||
#ifndef stpcpy
|
|
||||||
extern char *stpcpy(char *, const char *); /* For AIX with gcc 2.95.3 */
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern char NEAR _dig_vec[]; /* Declared in int2str() */
|
extern char NEAR _dig_vec[]; /* Declared in int2str() */
|
||||||
|
@@ -37,7 +37,7 @@ SSL *my_ssl_init(MYSQL *mysql);
|
|||||||
int my_ssl_connect(SSL *ssl);
|
int my_ssl_connect(SSL *ssl);
|
||||||
|
|
||||||
int my_ssl_start(MYSQL *mysql);
|
int my_ssl_start(MYSQL *mysql);
|
||||||
void my_ssl_end();
|
void my_ssl_end(void);
|
||||||
|
|
||||||
#endif /* HAVE_OPENSSL */
|
#endif /* HAVE_OPENSSL */
|
||||||
#endif /* _ma_secure_h_ */
|
#endif /* _ma_secure_h_ */
|
||||||
|
@@ -347,7 +347,7 @@ typedef int my_socket; /* File descriptor for sockets */
|
|||||||
#endif
|
#endif
|
||||||
/* Type for fuctions that handles signals */
|
/* Type for fuctions that handles signals */
|
||||||
#define sig_handler RETSIGTYPE
|
#define sig_handler RETSIGTYPE
|
||||||
typedef void (*sig_return)();/* Returns type from signal */
|
typedef void (*sig_return)(void);/* Returns type from signal */
|
||||||
#if defined(__GNUC__) && !defined(_lint)
|
#if defined(__GNUC__) && !defined(_lint)
|
||||||
typedef char pchar; /* Mixed prototypes can take char */
|
typedef char pchar; /* Mixed prototypes can take char */
|
||||||
typedef char puchar; /* Mixed prototypes can take char */
|
typedef char puchar; /* Mixed prototypes can take char */
|
||||||
|
@@ -34,8 +34,6 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
#endif /* !defined(MSDOS) && !defined(_WIN32) */
|
#endif /* !defined(MSDOS) && !defined(_WIN32) */
|
||||||
|
|
||||||
void my_inet_ntoa(struct in_addr in, char *buf);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Handling of gethostbyname_r()
|
Handling of gethostbyname_r()
|
||||||
*/
|
*/
|
||||||
@@ -47,11 +45,8 @@ struct hostent;
|
|||||||
struct hostent *my_gethostbyname_r(const char *name,
|
struct hostent *my_gethostbyname_r(const char *name,
|
||||||
struct hostent *result, char *buffer,
|
struct hostent *result, char *buffer,
|
||||||
int buflen, int *h_errnop);
|
int buflen, int *h_errnop);
|
||||||
void my_gethostbyname_r_free();
|
void my_gethostbyname_r_free(void);
|
||||||
#elif defined(HAVE_PTHREAD_ATTR_CREATE) || defined(_AIX) || defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE)
|
#elif defined(HAVE_PTHREAD_ATTR_CREATE) || defined(_AIX) || defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE)
|
||||||
struct hostent *my_gethostbyname_r(const char *name,
|
|
||||||
struct hostent *result, char *buffer,
|
|
||||||
int buflen, int *h_errnop);
|
|
||||||
#define my_gethostbyname_r_free()
|
#define my_gethostbyname_r_free()
|
||||||
#if !defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE) && !defined(HPUX)
|
#if !defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE) && !defined(HPUX)
|
||||||
#define GETHOSTBYNAME_BUFF_SIZE sizeof(struct hostent_data)
|
#define GETHOSTBYNAME_BUFF_SIZE sizeof(struct hostent_data)
|
||||||
|
@@ -247,12 +247,4 @@ my_ulonglong STDCALL mysql_stmt_num_rows(MYSQL_STMT *stmt);
|
|||||||
my_ulonglong STDCALL mysql_stmt_affected_rows(MYSQL_STMT *stmt);
|
my_ulonglong STDCALL mysql_stmt_affected_rows(MYSQL_STMT *stmt);
|
||||||
my_ulonglong STDCALL mysql_stmt_insert_id(MYSQL_STMT *stmt);
|
my_ulonglong STDCALL mysql_stmt_insert_id(MYSQL_STMT *stmt);
|
||||||
unsigned int STDCALL mysql_stmt_field_count(MYSQL_STMT *stmt);
|
unsigned int STDCALL mysql_stmt_field_count(MYSQL_STMT *stmt);
|
||||||
my_bool STDCALL mysql_stmt_reset(MYSQL_STMT *stmt);
|
|
||||||
MYSQL_ROW_OFFSET STDCALL mysql_stmt_row_tell(MYSQL_STMT *stmt);
|
|
||||||
MYSQL_ROW_OFFSET STDCALL mysql_stmt_row_seek(MYSQL_STMT *stmt, MYSQL_ROW_OFFSET new_row);
|
|
||||||
unsigned long STDCALL mysql_stmt_param_count(MYSQL_STMT *stmt);
|
|
||||||
my_bool STDCALL mysql_stmt_send_long_data(MYSQL_STMT *stmt, unsigned int param_number, const char *data, unsigned long length);
|
|
||||||
my_ulonglong STDCALL mysql_stmt_insert_id(MYSQL_STMT *stmt);
|
|
||||||
my_ulonglong STDCALL mysql_stmt_num_rows(MYSQL_STMT *stmt);
|
|
||||||
MYSQL_RES* STDCALL mysql_stmt_param_metadata(MYSQL_STMT *stmt);
|
|
||||||
int STDCALL mysql_stmt_next_result(MYSQL_STMT *stmt);
|
int STDCALL mysql_stmt_next_result(MYSQL_STMT *stmt);
|
||||||
|
@@ -178,11 +178,13 @@ void __CDECL hfree(void *ptr);
|
|||||||
#endif
|
#endif
|
||||||
#endif /* MSDOS */
|
#endif /* MSDOS */
|
||||||
|
|
||||||
|
#ifndef errno
|
||||||
#ifdef HAVE_ERRNO_AS_DEFINE
|
#ifdef HAVE_ERRNO_AS_DEFINE
|
||||||
#include <errno.h> /* errno is a define */
|
#include <errno.h> /* errno is a define */
|
||||||
#else
|
#else
|
||||||
extern int errno; /* declare errno */
|
extern int errno; /* declare errno */
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
extern const char ** NEAR my_errmsg[];
|
extern const char ** NEAR my_errmsg[];
|
||||||
extern char NEAR errbuff[NRERRBUFFS][ERRMSGSIZE];
|
extern char NEAR errbuff[NRERRBUFFS][ERRMSGSIZE];
|
||||||
extern char *home_dir; /* Home directory for user */
|
extern char *home_dir; /* Home directory for user */
|
||||||
|
@@ -441,7 +441,7 @@ unsigned long STDCALL mysql_real_escape_string(MYSQL *mysql,
|
|||||||
unsigned long length);
|
unsigned long length);
|
||||||
void STDCALL mysql_debug(const char *debug);
|
void STDCALL mysql_debug(const char *debug);
|
||||||
#define mysql_debug_init(A) mysql_debug((A));
|
#define mysql_debug_init(A) mysql_debug((A));
|
||||||
void STDCALL mysql_debug_end();
|
void STDCALL mysql_debug_end(void);
|
||||||
void STDCALL myodbc_remove_escape(MYSQL *mysql,char *name);
|
void STDCALL myodbc_remove_escape(MYSQL *mysql,char *name);
|
||||||
unsigned int STDCALL mysql_thread_safe(void);
|
unsigned int STDCALL mysql_thread_safe(void);
|
||||||
unsigned int STDCALL mysql_warning_count(MYSQL *mysql);
|
unsigned int STDCALL mysql_warning_count(MYSQL *mysql);
|
||||||
|
@@ -60,7 +60,7 @@
|
|||||||
const char *desc; \
|
const char *desc; \
|
||||||
unsigned int version[3]; \
|
unsigned int version[3]; \
|
||||||
int (*init)(char *, size_t, int, va_list); \
|
int (*init)(char *, size_t, int, va_list); \
|
||||||
int (*deinit)();
|
int (*deinit)(void);
|
||||||
|
|
||||||
struct st_mysql_client_plugin
|
struct st_mysql_client_plugin
|
||||||
{
|
{
|
||||||
|
@@ -374,7 +374,6 @@ void hash_password(unsigned long *result, const char *password, size_t len);
|
|||||||
|
|
||||||
/* Some other useful functions */
|
/* Some other useful functions */
|
||||||
|
|
||||||
void my_init(void);
|
|
||||||
void load_defaults(const char *conf_file, const char **groups,
|
void load_defaults(const char *conf_file, const char **groups,
|
||||||
int *argc, char ***argv);
|
int *argc, char ***argv);
|
||||||
my_bool my_thread_init(void);
|
my_bool my_thread_init(void);
|
||||||
|
Reference in New Issue
Block a user