mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Correcting signature for my_strndup to be able to build on Windows
in pushbuild on Replication/Backup team tree. include/my_sys.h: Using "char" instead of "byte" for my_strndup(). mysys/safemalloc.c: Using "char" instead of "byte" for my_strndup().
This commit is contained in:
parent
98311625fa
commit
72154adc26
2 changed files with 3 additions and 3 deletions
|
|
@ -163,7 +163,7 @@ extern gptr my_realloc(gptr oldpoint,uint Size,myf MyFlags);
|
|||
extern void my_no_flags_free(gptr ptr);
|
||||
extern gptr my_memdup(const byte *from,uint length,myf MyFlags);
|
||||
extern char *my_strdup(const char *from,myf MyFlags);
|
||||
extern char *my_strndup(const byte *from, uint length,
|
||||
extern char *my_strndup(const char *from, uint length,
|
||||
myf MyFlags);
|
||||
/* we do use FG (as a no-op) in below so that a typo on FG is caught */
|
||||
#define my_free(PTR,FG) ((void)FG,my_no_flags_free(PTR))
|
||||
|
|
@ -587,7 +587,7 @@ extern gptr _my_memdup(const byte *from,uint length,
|
|||
const char *sFile, uint uLine,myf MyFlag);
|
||||
extern my_string _my_strdup(const char *from, const char *sFile, uint uLine,
|
||||
myf MyFlag);
|
||||
extern char *_my_strndup(const byte *from, uint length,
|
||||
extern char *_my_strndup(const char *from, uint length,
|
||||
const char *sFile, uint uLine,
|
||||
myf MyFlag);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue