Skip to content

Commit

Permalink
remove errfp reference that was missed
Browse files Browse the repository at this point in the history
  • Loading branch information
balos1 committed Dec 8, 2023
1 parent 5466f54 commit a92b7b2
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/ida/ida.c
Original file line number Diff line number Diff line change
Expand Up @@ -4015,30 +4015,3 @@ void IDAProcessError(IDAMem IDA_mem, int error_code, int line, const char* func,

return;
}

/* IDAErrHandler is the default error handling function.
It sends the error message to the stream pointed to by ida_errfp */

void IDAErrHandler(int error_code, const char* module, const char* function,
char* msg, void* data)
{
IDAMem IDA_mem;
char err_type[10];

/* data points to IDA_mem here */

IDA_mem = (IDAMem)data;

if (error_code == IDA_WARNING) { sprintf(err_type, "WARNING"); }
else { sprintf(err_type, "ERROR"); }

#ifndef NO_FPRINTF_OUTPUT
if (IDA_mem->ida_errfp != NULL)
{
fprintf(IDA_mem->ida_errfp, "\n[%s %s] %s\n", module, err_type, function);
fprintf(IDA_mem->ida_errfp, " %s\n\n", msg);
}
#endif

return;
}

0 comments on commit a92b7b2

Please sign in to comment.