Cleanup compiler warning about printf arguments
This commit is contained in:
parent
f77a38c3c5
commit
19bf1cdb90
1 changed files with 2 additions and 2 deletions
4
scp.c
4
scp.c
|
@ -3982,7 +3982,7 @@ if (rptr->flags & REG_RO)
|
||||||
if (flag & EX_I) {
|
if (flag & EX_I) {
|
||||||
cptr = read_line (gbuf, CBUFSIZE, stdin);
|
cptr = read_line (gbuf, CBUFSIZE, stdin);
|
||||||
if (sim_log)
|
if (sim_log)
|
||||||
fprintf (sim_log, (cptr? "%s\n": "\n"), cptr);
|
fprintf (sim_log, "%s\n", cptr? cptr: "");
|
||||||
if (cptr == NULL) /* force exit */
|
if (cptr == NULL) /* force exit */
|
||||||
return 1;
|
return 1;
|
||||||
if (*cptr == 0) /* success */
|
if (*cptr == 0) /* success */
|
||||||
|
@ -4200,7 +4200,7 @@ if (dptr == NULL)
|
||||||
if (flag & EX_I) {
|
if (flag & EX_I) {
|
||||||
cptr = read_line (gbuf, CBUFSIZE, stdin);
|
cptr = read_line (gbuf, CBUFSIZE, stdin);
|
||||||
if (sim_log)
|
if (sim_log)
|
||||||
fprintf (sim_log, (cptr? "%s\n": "\n"), cptr);
|
fprintf (sim_log, "%s\n", cptr? cptr: "");
|
||||||
if (cptr == NULL) /* force exit */
|
if (cptr == NULL) /* force exit */
|
||||||
return 1;
|
return 1;
|
||||||
if (*cptr == 0) /* success */
|
if (*cptr == 0) /* success */
|
||||||
|
|
Loading…
Add table
Reference in a new issue