mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03: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:
@ -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;
|
||||
|
Reference in New Issue
Block a user