From 99b4730dc0267f13e4a149c5a58145fb80121dd6 Mon Sep 17 00:00:00 2001 From: Bill Heaton Date: Mon, 30 Sep 2013 12:10:11 -0700 Subject: [PATCH 1/2] Fix build warning on OS/X PDP11/pdp11_io_lib.c: In function 'show_iospace': PDP11/pdp11_io_lib.c:363: warning: too few arguments for format PDP10/pdp10_lp20.c: In function 'lp20_set_vfu_type': PDP10/pdp10_lp20.c:1038: warning: implicit declaration of function 'toupper' PDP10/pdp10_lp20.c:1121: warning: implicit declaration of function 'isspace' --- PDP10/pdp10_lp20.c | 1 + PDP11/pdp11_io_lib.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/PDP10/pdp10_lp20.c b/PDP10/pdp10_lp20.c index 9a8366c4..64e501a8 100644 --- a/PDP10/pdp10_lp20.c +++ b/PDP10/pdp10_lp20.c @@ -54,6 +54,7 @@ */ #include "pdp10_defs.h" +#include "ctype.h" /* Time (seconds) of idleness before data flushed to attached file. */ #ifndef LP20_IDLE_TIME diff --git a/PDP11/pdp11_io_lib.c b/PDP11/pdp11_io_lib.c index 98ed06ac..67849dfd 100644 --- a/PDP11/pdp11_io_lib.c +++ b/PDP11/pdp11_io_lib.c @@ -360,7 +360,7 @@ else maxvec = i+j; fprintf (st, " %*.*sVector%*.*s", i/2, i/2, " ", (i/2)+i%2, (i/2)+i%2, " "); -fprintf (st, " BR %*.*s# Device\n", (maxdev -1), (maxdev-1)); +fprintf (st, " BR %*.*s# Device\n", (maxdev -1), (maxdev-1), " "); for (i = 0; i < maxaddr; i++) fputc ('-', st); fprintf (st, " "); From 839db8e1fd4d955711b8076395e4b15d4a89120f Mon Sep 17 00:00:00 2001 From: Bill Heaton Date: Tue, 1 Oct 2013 13:09:36 -0700 Subject: [PATCH 2/2] PDP10: Use system style of include --- PDP10/pdp10_lp20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PDP10/pdp10_lp20.c b/PDP10/pdp10_lp20.c index 64e501a8..3e0bde58 100644 --- a/PDP10/pdp10_lp20.c +++ b/PDP10/pdp10_lp20.c @@ -54,7 +54,7 @@ */ #include "pdp10_defs.h" -#include "ctype.h" +#include /* Time (seconds) of idleness before data flushed to attached file. */ #ifndef LP20_IDLE_TIME