From c1acdb8aec53eb4dba14ab282a7aae9ed7fc18ee Mon Sep 17 00:00:00 2001 From: squall-leonhart Date: Tue, 14 Apr 2015 10:59:03 +0000 Subject: [PATCH] silence some warnings. --- src/gba/BreakpointStructures.cpp | 6 +++--- src/gba/debugger-expr-lex.cpp | 2 +- src/gba/remote.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gba/BreakpointStructures.cpp b/src/gba/BreakpointStructures.cpp index 0b74c92d..1bcc62d9 100644 --- a/src/gba/BreakpointStructures.cpp +++ b/src/gba/BreakpointStructures.cpp @@ -624,7 +624,7 @@ void parseAndCreateConditionalBreaks(u32 address, u8 flags, char** exp, int n){ }else{ now->exp_type_flags |= 6; //assume signed word } - now->address = strdup(exp[i]); + now->address = _strdup(exp[i]); i++; if(i >= n) goto fail; char* operandName = exp[i]; @@ -639,7 +639,7 @@ void parseAndCreateConditionalBreaks(u32 address, u8 flags, char** exp, int n){ }else{ now->exp_type_flags |= 0x60; //assume signed word } - now->value = strdup(exp[i]); + now->value = _strdup(exp[i]); i++; u32 val; if(!dexp_eval(now->value, &val) || !dexp_eval(now->address, &val)){ @@ -677,7 +677,7 @@ void parseAndCreateConditionalBreaks(u32 address, u8 flags, char** exp, int n){ u8 parseExpressionType(char* given_type){ u8 flags = 0; //for such a small string, pays off to convert first - char* type = strdup(given_type); + char* type = _strdup(given_type); for(int i = 0; type[i] != '\0'; i++){ type[i] = toupper(type[i]); } diff --git a/src/gba/debugger-expr-lex.cpp b/src/gba/debugger-expr-lex.cpp index 70cba369..d7abce0a 100644 --- a/src/gba/debugger-expr-lex.cpp +++ b/src/gba/debugger-expr-lex.cpp @@ -1538,7 +1538,7 @@ extern int isatty (int ); b->yy_bs_column = 0; } - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; + b->yy_is_interactive = file ? (isatty( _fileno(file) ) > 0) : 0; errno = oerrno; } diff --git a/src/gba/remote.cpp b/src/gba/remote.cpp index 0d65b30c..47d6dde3 100644 --- a/src/gba/remote.cpp +++ b/src/gba/remote.cpp @@ -2077,7 +2077,7 @@ void executeBreakCommands(int n, char** cmd){ command = breakSymbolCombo(command, &len); changed = (len == 5); }if (!changed){ - command = strdup(replaceAlias(cmd[0], breakAliasTable)); + command = _strdup(replaceAlias(cmd[0], breakAliasTable)); changed = (strcmp(cmd[0], command)); } if (!changed){