Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/man Revert previous; other errors from WARNS=3 obscu...



details:   https://anonhg.NetBSD.org/src/rev/e89a6bedc11c
branches:  trunk
changeset: 788679:e89a6bedc11c
user:      uwe <uwe%NetBSD.org@localhost>
date:      Thu Jul 18 04:05:32 2013 +0000

description:
Revert previous; other errors from WARNS=3 obscured the error in jump().

diffstat:

 usr.bin/man/man.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r b84eebe202c1 -r e89a6bedc11c usr.bin/man/man.c
--- a/usr.bin/man/man.c Thu Jul 18 04:02:31 2013 +0000
+++ b/usr.bin/man/man.c Thu Jul 18 04:05:32 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: man.c,v 1.46 2013/07/18 04:02:31 uwe Exp $     */
+/*     $NetBSD: man.c,v 1.47 2013/07/18 04:05:32 uwe Exp $     */
 
 /*
  * Copyright (c) 1987, 1993, 1994, 1995
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)man.c      8.17 (Berkeley) 1/31/95";
 #else
-__RCSID("$NetBSD: man.c,v 1.46 2013/07/18 04:02:31 uwe Exp $");
+__RCSID("$NetBSD: man.c,v 1.47 2013/07/18 04:05:32 uwe Exp $");
 #endif
 #endif /* not lint */
 
@@ -114,7 +114,7 @@
 static const char      *check_pager(const char *);
 static int      cleanup(void);
 static void     how(char *);
-static void     jump(char **, const char *, const char *);
+static void     jump(char **, char *, char *);
 static int      manual(char *, struct manstate *, glob_t *);
 static void     onsig(int);
 static void     usage(void) __attribute__((__noreturn__));
@@ -898,7 +898,7 @@
  *     strip out flag argument and jump
  */
 static void
-jump(char **argv, const char *flag, const char *name)
+jump(char **argv, char *flag, char *name)
 {
        char **arg;
 



Home | Main Index | Thread Index | Old Index