Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libedit Don't use non-standard uint or u_int.



details:   https://anonhg.NetBSD.org/src/rev/eb0794b3f260
branches:  trunk
changeset: 581392:eb0794b3f260
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jun 01 11:37:52 2005 +0000

description:
Don't use non-standard uint or u_int.

diffstat:

 lib/libedit/TEST/test.c |  6 +++---
 lib/libedit/chared.c    |  6 +++---
 lib/libedit/read.c      |  6 +++---
 lib/libedit/tty.c       |  6 +++---
 lib/libedit/tty.h       |  6 +++---
 5 files changed, 15 insertions(+), 15 deletions(-)

diffs (128 lines):

diff -r 5c28e3cc11e8 -r eb0794b3f260 lib/libedit/TEST/test.c
--- a/lib/libedit/TEST/test.c   Wed Jun 01 11:25:01 2005 +0000
+++ b/lib/libedit/TEST/test.c   Wed Jun 01 11:37:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: test.c,v 1.17 2005/05/28 12:03:22 lukem Exp $  */
+/*     $NetBSD: test.c,v 1.18 2005/06/01 11:37:52 lukem Exp $  */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)test.c     8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: test.c,v 1.17 2005/05/28 12:03:22 lukem Exp $");
+__RCSID("$NetBSD: test.c,v 1.18 2005/06/01 11:37:52 lukem Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -63,7 +63,7 @@
 static int continuation = 0;
 volatile sig_atomic_t gotsig = 0;
 
-static u_char  complete(EditLine *, int);
+static unsigned char   complete(EditLine *, int);
        int     main(int, char **);
 static char   *prompt(EditLine *);
 static void    sig(int);
diff -r 5c28e3cc11e8 -r eb0794b3f260 lib/libedit/chared.c
--- a/lib/libedit/chared.c      Wed Jun 01 11:25:01 2005 +0000
+++ b/lib/libedit/chared.c      Wed Jun 01 11:37:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chared.c,v 1.22 2004/08/13 12:10:38 mycroft Exp $      */
+/*     $NetBSD: chared.c,v 1.23 2005/06/01 11:37:52 lukem Exp $        */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)chared.c   8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: chared.c,v 1.22 2004/08/13 12:10:38 mycroft Exp $");
+__RCSID("$NetBSD: chared.c,v 1.23 2005/06/01 11:37:52 lukem Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -58,7 +58,7 @@
 {
        c_undo_t *vu = &el->el_chared.c_undo;
        c_redo_t *r = &el->el_chared.c_redo;
-       uint size;
+       unsigned int size;
 
        /* Save entire line for undo */
        size = el->el_line.lastchar - el->el_line.buffer;
diff -r 5c28e3cc11e8 -r eb0794b3f260 lib/libedit/read.c
--- a/lib/libedit/read.c        Wed Jun 01 11:25:01 2005 +0000
+++ b/lib/libedit/read.c        Wed Jun 01 11:37:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: read.c,v 1.35 2005/03/09 23:55:02 christos Exp $       */
+/*     $NetBSD: read.c,v 1.36 2005/06/01 11:37:52 lukem Exp $  */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)read.c     8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: read.c,v 1.35 2005/03/09 23:55:02 christos Exp $");
+__RCSID("$NetBSD: read.c,v 1.36 2005/06/01 11:37:52 lukem Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -485,7 +485,7 @@
 #endif /* DEBUG_READ */
                        break;
                }
-               if ((uint)cmdnum >= el->el_map.nfunc) { /* BUG CHECK command */
+               if ((unsigned int)cmdnum >= el->el_map.nfunc) { /* BUG CHECK command */
 #ifdef DEBUG_EDIT
                        (void) fprintf(el->el_errfile,
                            "ERROR: illegal command from key 0%o\r\n", ch);
diff -r 5c28e3cc11e8 -r eb0794b3f260 lib/libedit/tty.c
--- a/lib/libedit/tty.c Wed Jun 01 11:25:01 2005 +0000
+++ b/lib/libedit/tty.c Wed Jun 01 11:37:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty.c,v 1.22 2005/05/29 03:55:37 christos Exp $        */
+/*     $NetBSD: tty.c,v 1.23 2005/06/01 11:37:52 lukem 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.22 2005/05/29 03:55:37 christos Exp $");
+__RCSID("$NetBSD: tty.c,v 1.23 2005/06/01 11:37:52 lukem Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -50,7 +50,7 @@
 
 typedef struct ttymodes_t {
        const char *m_name;
-       u_int m_value;
+       unsigned int m_value;
        int m_type;
 }          ttymodes_t;
 
diff -r 5c28e3cc11e8 -r eb0794b3f260 lib/libedit/tty.h
--- a/lib/libedit/tty.h Wed Jun 01 11:25:01 2005 +0000
+++ b/lib/libedit/tty.h Wed Jun 01 11:37:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty.h,v 1.10 2003/08/07 16:44:34 agc Exp $     */
+/*     $NetBSD: tty.h,v 1.11 2005/06/01 11:37:52 lukem Exp $   */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -450,8 +450,8 @@
 
 typedef struct {
        const char      *t_name;
-       u_int    t_setmask;
-       u_int    t_clrmask;
+       unsigned int     t_setmask;
+       unsigned int     t_clrmask;
 } ttyperm_t[NN_IO][MD_NN];
 
 typedef unsigned char ttychar_t[NN_IO][C_NCC];



Home | Main Index | Thread Index | Old Index