mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 07:05:33 +02:00
make the IM compile on Windows
server-tools/instance-manager/instance_options.cc: fix for coding guidelines server-tools/instance-manager/parse_output.cc: fix for coding guidelines server-tools/instance-manager/priv.cc: don't call pthread_attr_setstacksize on Windows server-tools/instance-manager/priv.h: include my_pthread so the thread functions will compile on Windows
This commit is contained in:
parent
5ce36e8134
commit
e9af959eef
4 changed files with 7 additions and 6 deletions
|
|
@ -26,13 +26,13 @@
|
|||
|
||||
void trim_space(const char **text, uint *word_len)
|
||||
{
|
||||
const char* start= *text;
|
||||
const char *start= *text;
|
||||
while (*start != 0 && *start == ' ')
|
||||
start++;
|
||||
*text= start;
|
||||
|
||||
int len= strlen(start);
|
||||
const char* end= start + len - 1;
|
||||
const char *end= start + len - 1;
|
||||
while (end > start && my_isspace(&my_charset_latin1, *end))
|
||||
end--;
|
||||
*word_len= (end - start)+1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue