From 648c015ca70b15edf41d80aa87314ade3252d140 Mon Sep 17 00:00:00 2001 From: David Levine Date: Thu, 5 Jan 2012 21:36:51 -0600 Subject: [PATCH] Fixed trivial compile warnings. --- sbr/fmt_scan.c | 3 ++- sbr/pidwait.c | 1 + uip/mhshowsbr.c | 1 + uip/termsbr.c | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sbr/fmt_scan.c b/sbr/fmt_scan.c index 97a0b4a..8d03836 100644 --- a/sbr/fmt_scan.c +++ b/sbr/fmt_scan.c @@ -126,10 +126,11 @@ cpnumber(char **dest, int num, unsigned int wid, char fill, size_t n) { static void cptrimmed(char **dest, char *str, unsigned int wid, char fill, size_t n) { int remaining; /* remaining output width available */ - int c, ljust, w; + int c, ljust; int end; /* number of input bytes remaining in str */ #ifdef MULTIBYTE_SUPPORT int char_len; /* bytes in current character */ + int w; wchar_t wide_char; #endif char *sp; /* current position in source string */ diff --git a/sbr/pidwait.c b/sbr/pidwait.c index f454161..5ea87c5 100644 --- a/sbr/pidwait.c +++ b/sbr/pidwait.c @@ -11,6 +11,7 @@ #include #include #include +#include int pidwait (pid_t id, int sigsok) diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index efa9ad3..8e09591 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -19,6 +19,7 @@ #include #include #include +#include extern int debugsw; diff --git a/uip/termsbr.c b/uip/termsbr.c index 93e6dd6..f30a058 100644 --- a/uip/termsbr.c +++ b/uip/termsbr.c @@ -54,7 +54,7 @@ short ospeed; char PC; # endif -#endif notdef_lyndon_posix +#endif /* notdef_lyndon_posix */ static long speedcode; -- 1.7.10.4