summaryrefslogtreecommitdiff
path: root/mysys/my_pthread.c
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.com>2000-10-20 17:39:23 +0300
committerunknown <monty@donna.mysql.com>2000-10-20 17:39:23 +0300
commit982260d2cb5ec6b3864a34a4cb355160986f807f (patch)
treec1fdd2f498afdf46ca3d76edce587eb117986b03 /mysys/my_pthread.c
parentae687f81506b4021fe6f0b6743d749be1bf43456 (diff)
downloadmariadb-git-982260d2cb5ec6b3864a34a4cb355160986f807f.tar.gz
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
Diffstat (limited to 'mysys/my_pthread.c')
-rw-r--r--mysys/my_pthread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mysys/my_pthread.c b/mysys/my_pthread.c
index 3d8b2e4d0ed..f54e11eae8b 100644
--- a/mysys/my_pthread.c
+++ b/mysys/my_pthread.c
@@ -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;