summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-02-05 01:57:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-02-05 01:57:51 +0000
commit4c97c5ea0988331b69a37d9563afb410f5ac2315 (patch)
tree2a9e9db417e0d26913f187bb7d3d2fdc29aed445
parent9843e20b5d6f8ed4bf3d77ec23d6a229545bf8ec (diff)
please alpha gcc
-rw-r--r--usr.bin/m4/main.c6
-rw-r--r--usr.bin/window/ttinit.c7
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 <stdlib.h>
+#include <string.h>
#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++)
;