mirror of
https://github.com/MariaDB/server.git
synced 2026-05-05 14:45:31 +02:00
Bug fixes + defines for INNOBASE
Docs/manual.texi: Cleanups client/sql_string.cc: Fixes for AIX mit-pthreads/Changes-mysql: Changelog mit-pthreads/config/configure.in: Fixes for NETBSD mit-pthreads/config/configure: Fixes for NETBSD mit-pthreads/gen/ctime.c: Fixes for NETBSD mysys/my_pthread.c: Changed assert to dbug_assert scripts/make_binary_distribution.sh: Removed mysql-test scripts/safe_mysqld.sh: Forced --defaults-extra-file to be first argument to mysqld sql/handler.h: Added INNOBASE database type sql/item_func.h: Fixed core dump when using MATCH sql/lex.h: Added INNOBASE database type sql/mysqld.cc: Fix for future sql/sql_yacc.yy: Added INNOBASE database type
This commit is contained in:
parent
ae687f8150
commit
982260d2cb
14 changed files with 73 additions and 47 deletions
|
|
@ -424,7 +424,7 @@ struct hostent *my_gethostbyname_r(const char *name,
|
|||
int buflen, int *h_errnop)
|
||||
{
|
||||
struct hostent *hp;
|
||||
assert((size_t) buflen >= sizeof(*result));
|
||||
dbug_assert((size_t) buflen >= sizeof(*result));
|
||||
if (gethostbyname_r(name,result, buffer, (size_t) buflen, &hp, h_errnop))
|
||||
return 0;
|
||||
return hp;
|
||||
|
|
@ -436,7 +436,7 @@ struct hostent *my_gethostbyname_r(const char *name,
|
|||
struct hostent *result, char *buffer,
|
||||
int buflen, int *h_errnop)
|
||||
{
|
||||
assert(buflen >= sizeof(struct hostent_data));
|
||||
dbug_assert(buflen >= sizeof(struct hostent_data));
|
||||
if (gethostbyname_r(name,result,(struct hostent_data *) buffer) == -1)
|
||||
{
|
||||
*h_errnop= errno;
|
||||
|
|
@ -452,7 +452,7 @@ struct hostent *my_gethostbyname_r(const char *name,
|
|||
int buflen, int *h_errnop)
|
||||
{
|
||||
struct hostent *hp;
|
||||
assert(buflen >= sizeof(struct hostent_data));
|
||||
dbug_assert(buflen >= sizeof(struct hostent_data));
|
||||
hp= gethostbyname_r(name,result,(struct hostent_data *) buffer);
|
||||
*h_errnop= errno;
|
||||
return hp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue