From 1e0ca54bf64085b2f45e8fa5a258e66e31729394 Mon Sep 17 00:00:00 2001 From: tg Date: Wed, 6 Jun 2007 22:26:26 +0000 Subject: [PATCH] =?UTF-8?q?out=20of=20a=2050-line=20diff=20which=20STILL?= =?UTF-8?q?=20didn't=20shut=20up=20icc,=20these=20are=20the=20actual=20pro?= =?UTF-8?q?blems.=20icc's=20warnings=20are=20bogus:=20=E2=80=A2=20it=20say?= =?UTF-8?q?s=20int=20x=5Fgetc(void);=20is=20invalid=20(hm=20well,=20it=20m?= =?UTF-8?q?ay=20be=20static=3F)=20=E2=80=A2=20char=20c,=20d;=20d=20=3D=20c?= =?UTF-8?q?=20|=200x40;=20->=20warning=20because=20(c=20|=200x40)=20is=20a?= =?UTF-8?q?n=20int=20=20=20(it=20apparently=20can't=20track=20value=20boun?= =?UTF-8?q?ds)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- edit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/edit.c b/edit.c index 54d822a..47351a7 100644 --- a/edit.c +++ b/edit.c @@ -5,7 +5,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.99 2007/06/05 19:48:46 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.100 2007/06/06 22:26:26 tg Exp $"); /* tty driver characters we are interested in */ typedef struct { @@ -1135,7 +1135,7 @@ static void x_mapout2(int, char **); static void x_print(int, int); static void x_adjust(void); static void x_e_ungetc(int); -static int x_e_getc(void); +static u_char x_e_getc(void); static void x_e_putc2(int); static void x_e_putc3(const char **); static void x_e_puts(const char *); @@ -2894,7 +2894,7 @@ x_e_ungetc(int c) unget_char = c; } -static int +static u_char x_e_getc(void) { int c; @@ -3119,7 +3119,7 @@ x_prev_histword(int c __unused) rcp++; x_ins(rcp); } else { - int ch; + char ch; rcp = cp; /*