1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-06 13:10:12 +03:00

Irix64 mipspro ndb compile fixes

This commit is contained in:
mysqldev@o2k.irixworld.net
2004-07-09 12:48:32 +02:00
parent 664329b565
commit 7e6bb0eee8
49 changed files with 303 additions and 208 deletions

View File

@@ -1303,14 +1303,15 @@ bool
EventLogger::matchEventCategory(const char * str,
LogLevel::EventCategory * cat,
bool exactMatch){
unsigned i;
if(cat == 0 || str == 0)
return false;
char * tmp = strdup(str);
for(size_t i = 0; i<strlen(tmp); i++)
for(i = 0; i<strlen(tmp); i++)
tmp[i] = toupper(tmp[i]);
for(Uint32 i = 0; i<noOfEventCategoryNames; i++){
for(i = 0; i<noOfEventCategoryNames; i++){
if(strcmp(tmp, eventCategoryNames[i].name) == 0){
* cat = eventCategoryNames[i].category;
free(tmp);