summaryrefslogtreecommitdiff
path: root/mysys/my_malloc.c
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2002-09-18 02:21:29 +0300
committerunknown <monty@mashka.mysql.fi>2002-09-18 02:21:29 +0300
commitaef675029f198c61a1a1c46dbb68890f705d40db (patch)
treea902843afe48087da439aa3786b69dca86f00349 /mysys/my_malloc.c
parent081023e8fd9a5ab196ca56d55ea256f33ea76f3f (diff)
downloadmariadb-git-aef675029f198c61a1a1c46dbb68890f705d40db.tar.gz
Update mysql-test results after merge
include/my_sys.h: Portability fix include/sslopt-longopts.h: Better help for --ssl mysql-test/r/binary.result: Update results after merge mysys/my_malloc.c: Portability fix sql/udf_example.cc: Use longlong instead of 'long long' to make things works on windows
Diffstat (limited to 'mysys/my_malloc.c')
-rw-r--r--mysys/my_malloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mysys/my_malloc.c b/mysys/my_malloc.c
index fc2f22b079a..b273363aaf1 100644
--- a/mysys/my_malloc.c
+++ b/mysys/my_malloc.c
@@ -73,7 +73,7 @@ gptr my_memdup(const byte *from, uint length, myf MyFlags)
}
-my_string my_strdup(const char *from, myf MyFlags)
+char *my_strdup(const char *from, myf MyFlags)
{
gptr ptr;
uint length=(uint) strlen(from)+1;
@@ -83,13 +83,13 @@ my_string my_strdup(const char *from, myf MyFlags)
}
-gptr my_strdup_with_length(const byte *from, uint length, myf MyFlags)
+char *my_strdup_with_length(const byte *from, uint length, myf MyFlags)
{
gptr ptr;
if ((ptr=my_malloc(length+1,MyFlags)) != 0)
{
memcpy((byte*) ptr, (byte*) from,(size_t) length);
- ptr[length]=0;
+ ((char*) ptr)[length]=0;
}
- return(ptr);
+ return((char*) ptr);
}