Source-Changes-HG archive

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

[src/trunk]: src/lib/libterm adjust to constification of cgetent()



details:   https://anonhg.NetBSD.org/src/rev/e8106ce2d66c
branches:  trunk
changeset: 565926:e8106ce2d66c
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Apr 23 14:49:18 2004 +0000

description:
adjust to constification of cgetent()

diffstat:

 lib/libterm/termcap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r d4338bb4f30f -r e8106ce2d66c lib/libterm/termcap.c
--- a/lib/libterm/termcap.c     Fri Apr 23 14:48:07 2004 +0000
+++ b/lib/libterm/termcap.c     Fri Apr 23 14:49:18 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: termcap.c,v 1.46 2003/08/07 16:44:57 agc Exp $ */
+/*     $NetBSD: termcap.c,v 1.47 2004/04/23 14:49:18 christos Exp $    */
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)termcap.c  8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: termcap.c,v 1.46 2003/08/07 16:44:57 agc Exp $");
+__RCSID("$NetBSD: termcap.c,v 1.47 2004/04/23 14:49:18 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -218,7 +218,7 @@
         * normally read.
         */
        (*bp)->info = NULL;
-       i = cgetent(&((*bp)->info), pathvec, name);      
+       i = cgetent(&((*bp)->info), (const char *const *)pathvec, name);      
 
        /*
         * if we get an error and we skipped doing the cgetset before
@@ -231,7 +231,7 @@
                                error = -2;
                                goto out;
                        }
-               i = cgetent(&((*bp)->info), pathvec, name);      
+               i = cgetent(&((*bp)->info), (const char *const *)pathvec, name);      
        }
 
        /* no tc reference loop return code in libterm XXX */



Home | Main Index | Thread Index | Old Index