Module Name: src Committed By: uwe Date: Thu Jul 18 04:05:32 UTC 2013
Modified Files: src/usr.bin/man: man.c Log Message: Revert previous; other errors from WARNS=3 obscured the error in jump(). To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 src/usr.bin/man/man.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/man/man.c diff -u src/usr.bin/man/man.c:1.46 src/usr.bin/man/man.c:1.47 --- src/usr.bin/man/man.c:1.46 Thu Jul 18 04:02:31 2013 +++ src/usr.bin/man/man.c Thu Jul 18 04:05:32 2013 @@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 19 #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 void cat(char *); 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 @@ check_pager(const char *name) * 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;