From 4c97c5ea0988331b69a37d9563afb410f5ac2315 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 5 Feb 2001 01:57:51 +0000 Subject: please alpha gcc --- usr.bin/m4/main.c | 6 +++--- usr.bin/window/ttinit.c | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/usr.bin/m4/main.c b/usr.bin/m4/main.c index 143386b190e..45ce7d2bd92 100644 --- a/usr.bin/m4/main.c +++ b/usr.bin/m4/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.36 2000/07/27 17:44:33 espie Exp $ */ +/* $OpenBSD: main.c,v 1.37 2001/02/05 01:57:27 deraadt Exp $ */ /* $NetBSD: main.c,v 1.12 1997/02/08 23:54:49 cgd Exp $ */ /*- @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.36 2000/07/27 17:44:33 espie Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.37 2001/02/05 01:57:27 deraadt Exp $"; #endif #endif /* not lint */ @@ -599,7 +599,7 @@ static void enlarge_stack() { STACKMAX *= 2; - fprintf(stderr, "%u\n", STACKMAX); + fprintf(stderr, "%lu\n", (unsigned long)STACKMAX); mstack = realloc(mstack, sizeof(stae) * STACKMAX); sstack = realloc(sstack, STACKMAX); if (mstack == NULL || sstack == NULL) diff --git a/usr.bin/window/ttinit.c b/usr.bin/window/ttinit.c index 8895c359ec7..36da770cf60 100644 --- a/usr.bin/window/ttinit.c +++ b/usr.bin/window/ttinit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ttinit.c,v 1.7 2000/04/15 05:22:14 millert Exp $ */ +/* $OpenBSD: ttinit.c,v 1.8 2001/02/05 01:57:50 deraadt Exp $ */ /* $NetBSD: ttinit.c,v 1.3 1995/09/28 10:34:50 tls Exp $ */ /* @@ -41,11 +41,12 @@ #if 0 static char sccsid[] = "@(#)ttinit.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: ttinit.c,v 1.7 2000/04/15 05:22:14 millert Exp $"; +static char rcsid[] = "$OpenBSD: ttinit.c,v 1.8 2001/02/05 01:57:50 deraadt Exp $"; #endif #endif /* not lint */ #include +#include #include "ww.h" #include "tt.h" @@ -99,7 +100,7 @@ ttinit() #ifdef NCURSES_VERSION wwterm = strdup(_nc_first_name(cur_term->type.term_names)); #elif !defined(TERMINFO) - if ((p = strchr(wwtermcap, '|')) && p - wwtermcap == 2) { + if ((p = strchr(wwtermcap, '|')) && (int)(p - wwtermcap) == 2) { /* Skip the two-character short name. */ for (p = wwtermcap; *p && *p != '|' && *p != ':'; p++) ; -- cgit v1.2.3