1
0
mirror of https://github.com/simh/simh.git synced 2026-05-05 23:34:21 +00:00

SCP: Fixed Coverity issue for sim_debug arguments

This commit is contained in:
Mark Pizzolato
2017-08-28 10:19:29 -07:00
parent 00f37f2891
commit ebf9489b59
2 changed files with 0 additions and 14 deletions

4
scp.c
View File

@@ -11253,11 +11253,7 @@ return stat | SCPE_NOMESSAGE;
Callers should be calling sim_debug() which is a macro
defined in scp.h which evaluates the action condition before
incurring call overhead. */
#if defined(__cplusplus)
void _sim_debug (uint32 dbits, void* vdptr, const char* fmt, ...)
#else
void _sim_debug (uint32 dbits, DEVICE* vdptr, const char* fmt, ...)
#endif
{
DEVICE *dptr = (DEVICE *)vdptr;
if (sim_deb && dptr && (dptr->dctrl & dbits)) {