Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit fixed warnings where wint_t is unsigned.
details: https://anonhg.NetBSD.org/src/rev/af3d161e1d7f
branches: trunk
changeset: 770124:af3d161e1d7f
user: christos <christos%NetBSD.org@localhost>
date: Tue Oct 04 15:27:04 2011 +0000
description:
fixed warnings where wint_t is unsigned.
diffstat:
lib/libedit/search.c | 10 +++++-----
lib/libedit/terminal.c | 6 +++---
lib/libedit/tty.c | 8 ++++----
lib/libedit/vi.c | 6 +++---
4 files changed, 15 insertions(+), 15 deletions(-)
diffs (134 lines):
diff -r 205222e4903c -r af3d161e1d7f lib/libedit/search.c
--- a/lib/libedit/search.c Tue Oct 04 12:23:14 2011 +0000
+++ b/lib/libedit/search.c Tue Oct 04 15:27:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: search.c,v 1.29 2011/08/16 16:25:15 christos Exp $ */
+/* $NetBSD: search.c,v 1.30 2011/10/04 15:27:04 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)search.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: search.c,v 1.29 2011/08/16 16:25:15 christos Exp $");
+__RCSID("$NetBSD: search.c,v 1.30 2011/10/04 15:27:04 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -600,7 +600,7 @@
if (ch == 0)
return CC_ERROR;
- if (ch == -1) {
+ if (ch == (Int)-1) {
Char c;
if (FUN(el,getc)(el, &c) != 1)
return ed_end_of_file(el, 0);
@@ -614,14 +614,14 @@
cp = el->el_line.cursor;
while (count--) {
- if (*cp == ch)
+ if ((Int)*cp == ch)
cp += direction;
for (;;cp += direction) {
if (cp >= el->el_line.lastchar)
return CC_ERROR;
if (cp < el->el_line.buffer)
return CC_ERROR;
- if (*cp == ch)
+ if ((Int)*cp == ch)
break;
}
}
diff -r 205222e4903c -r af3d161e1d7f lib/libedit/terminal.c
--- a/lib/libedit/terminal.c Tue Oct 04 12:23:14 2011 +0000
+++ b/lib/libedit/terminal.c Tue Oct 04 15:27:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: terminal.c,v 1.9 2011/10/03 14:09:38 christos Exp $ */
+/* $NetBSD: terminal.c,v 1.10 2011/10/04 15:27:04 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)term.c 8.2 (Berkeley) 4/30/95";
#else
-__RCSID("$NetBSD: terminal.c,v 1.9 2011/10/03 14:09:38 christos Exp $");
+__RCSID("$NetBSD: terminal.c,v 1.10 2011/10/04 15:27:04 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -1235,7 +1235,7 @@
{
char buf[MB_LEN_MAX +1];
ssize_t i;
- if (c == MB_FILL_CHAR)
+ if (c == (Int)MB_FILL_CHAR)
return 0;
i = ct_encode_char(buf, (size_t)MB_LEN_MAX, c);
if (i <= 0)
diff -r 205222e4903c -r af3d161e1d7f lib/libedit/tty.c
--- a/lib/libedit/tty.c Tue Oct 04 12:23:14 2011 +0000
+++ b/lib/libedit/tty.c Tue Oct 04 15:27:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tty.c,v 1.40 2011/08/16 16:25:15 christos Exp $ */
+/* $NetBSD: tty.c,v 1.41 2011/10/04 15:27:04 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)tty.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: tty.c,v 1.40 2011/08/16 16:25:15 christos Exp $");
+__RCSID("$NetBSD: tty.c,v 1.41 2011/10/04 15:27:04 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -154,7 +154,7 @@
{C_LNEXT, VLNEXT,
{ED_QUOTED_INSERT, ED_QUOTED_INSERT, ED_UNASSIGNED}},
#endif /* VLNEXT */
- {-1, -1,
+ {(Int)-1, (Int)-1,
{ED_UNASSIGNED, ED_UNASSIGNED, ED_UNASSIGNED}}
};
@@ -914,7 +914,7 @@
dalt = NULL;
}
- for (tp = tty_map; tp->nch != -1; tp++) {
+ for (tp = tty_map; tp->nch != (Int)-1; tp++) {
new[0] = t_n[tp->nch];
old[0] = t_o[tp->och];
if (new[0] == old[0] && !force)
diff -r 205222e4903c -r af3d161e1d7f lib/libedit/vi.c
--- a/lib/libedit/vi.c Tue Oct 04 12:23:14 2011 +0000
+++ b/lib/libedit/vi.c Tue Oct 04 15:27:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vi.c,v 1.40 2011/08/16 16:25:15 christos Exp $ */
+/* $NetBSD: vi.c,v 1.41 2011/10/04 15:27:04 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)vi.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: vi.c,v 1.40 2011/08/16 16:25:15 christos Exp $");
+__RCSID("$NetBSD: vi.c,v 1.41 2011/10/04 15:27:04 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -63,7 +63,7 @@
if (el->el_chared.c_vcmd.action != NOP) {
/* 'cc', 'dd' and (possibly) friends */
- if (c != el->el_chared.c_vcmd.action)
+ if (c != (Int)el->el_chared.c_vcmd.action)
return CC_ERROR;
if (!(c & YANK))
Home |
Main Index |
Thread Index |
Old Index