silence some warnings.

This commit is contained in:
squall-leonhart 2015-04-14 10:59:03 +00:00
parent 0e5d12f070
commit c1acdb8aec
3 changed files with 5 additions and 5 deletions

View File

@ -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]);
}

View File

@ -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;
}

View File

@ -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){