mirror of
https://github.com/open-simh/simh.git
synced 2026-01-20 18:07:22 +00:00
Cleanup compiler warning about printf arguments
This commit is contained in:
parent
f77a38c3c5
commit
19bf1cdb90
4
scp.c
4
scp.c
@ -3982,7 +3982,7 @@ if (rptr->flags & REG_RO)
|
||||
if (flag & EX_I) {
|
||||
cptr = read_line (gbuf, CBUFSIZE, stdin);
|
||||
if (sim_log)
|
||||
fprintf (sim_log, (cptr? "%s\n": "\n"), cptr);
|
||||
fprintf (sim_log, "%s\n", cptr? cptr: "");
|
||||
if (cptr == NULL) /* force exit */
|
||||
return 1;
|
||||
if (*cptr == 0) /* success */
|
||||
@ -4200,7 +4200,7 @@ if (dptr == NULL)
|
||||
if (flag & EX_I) {
|
||||
cptr = read_line (gbuf, CBUFSIZE, stdin);
|
||||
if (sim_log)
|
||||
fprintf (sim_log, (cptr? "%s\n": "\n"), cptr);
|
||||
fprintf (sim_log, "%s\n", cptr? cptr: "");
|
||||
if (cptr == NULL) /* force exit */
|
||||
return 1;
|
||||
if (*cptr == 0) /* success */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user