Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/less/less Fix const issues



details:   https://anonhg.NetBSD.org/src/rev/46518c65a270
branches:  trunk
changeset: 765330:46518c65a270
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue May 24 12:31:56 2011 +0000

description:
Fix const issues

diffstat:

 usr.bin/less/less/prompt.c |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (57 lines):

diff -r e7ffac8f89f3 -r 46518c65a270 usr.bin/less/less/prompt.c
--- a/usr.bin/less/less/prompt.c        Tue May 24 12:27:29 2011 +0000
+++ b/usr.bin/less/less/prompt.c        Tue May 24 12:31:56 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prompt.c,v 1.13 2008/02/16 07:20:54 matt Exp $ */
+/*     $NetBSD: prompt.c,v 1.14 2011/05/24 12:31:56 joerg Exp $        */
 
 /*
  * Copyright (C) 1984-2004  Mark Nudelman
@@ -71,8 +71,8 @@
 static POSITION curr_byte __P((int));
 static int cond __P((int, int));
 static void protochar __P((int, int, int));
-static char *skipcond __P((char *));
-static char *wherechar __P((char *, int *));
+static const char *skipcond __P((const char *));
+static const char *wherechar __P((const char *, int *));
 
 /*
  * Initialize the prompt prototype strings.
@@ -401,9 +401,9 @@
  * where to resume parsing the string.
  * We must keep track of nested IFs and skip them properly.
  */
-       static char *
+       static const char *
 skipcond(p)
-       register char *p;
+       register const char *p;
 {
        register int iflevel;
 
@@ -459,9 +459,9 @@
 /*
  * Decode a char that represents a position on the screen.
  */
-       static char *
+       static const char *
 wherechar(p, wp)
-       char *p;
+       const char *p;
        int *wp;
 {
        switch (*p)
@@ -485,10 +485,10 @@
  */
        public char *
 pr_expand(proto, maxwidth)
-       char *proto;
+       const char *proto;
        int maxwidth;
 {
-       register char *p;
+       register const char *p;
        register int c;
        int where;
 



Home | Main Index | Thread Index | Old Index