From 4721d7ef435f4d79e92d8d98ba9b645bb25993fb Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 14 Apr 2000 06:39:19 +0000 Subject: #include where needed. Kill extern int errno;. Minor warnings in tip corrected. --- usr.bin/window/ttoutput.c | 5 +++-- usr.bin/window/wwchild.c | 4 +++- usr.bin/window/wwerror.c | 4 +++- 3 files changed, 9 insertions(+), 4 deletions(-) (limited to 'usr.bin/window') diff --git a/usr.bin/window/ttoutput.c b/usr.bin/window/ttoutput.c index 5c582d6..6a2a36e 100644 --- a/usr.bin/window/ttoutput.c +++ b/usr.bin/window/ttoutput.c @@ -32,6 +32,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #ifndef lint @@ -40,7 +42,7 @@ static char sccsid[] = "@(#)ttoutput.c 8.1 (Berkeley) 6/6/93"; #include "ww.h" #include "tt.h" -#include +#include /* * Buffered output package. @@ -51,7 +53,6 @@ ttflush() { register char *p; register n = tt_obp - tt_ob; - extern errno; if (n == 0) return; diff --git a/usr.bin/window/wwchild.c b/usr.bin/window/wwchild.c index 944bdd9..0e96466 100644 --- a/usr.bin/window/wwchild.c +++ b/usr.bin/window/wwchild.c @@ -32,6 +32,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #ifndef lint @@ -39,13 +41,13 @@ static char sccsid[] = "@(#)wwchild.c 8.1 (Berkeley) 6/6/93"; #endif /* not lint */ #include "ww.h" +#include #include #include void wwchild() { - extern errno; int olderrno; register struct ww **wp; union wait w; diff --git a/usr.bin/window/wwerror.c b/usr.bin/window/wwerror.c index 0bba6f5..c2b971c 100644 --- a/usr.bin/window/wwerror.c +++ b/usr.bin/window/wwerror.c @@ -32,18 +32,20 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #ifndef lint static char sccsid[] = "@(#)wwerror.c 8.1 (Berkeley) 6/6/93"; #endif /* not lint */ +#include #include "ww.h" char * wwerror() { - extern int errno; char *strerror(); switch (wwerrno) { -- cgit v1.1