Fix -Wcast-qual by sprinkling some consts, and remove named
parameters from a function prototype to avoid shadowing. Also fix a couple of other shadowing problems.
This commit is contained in:
parent
0d43148fcf
commit
82ea600ca2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: epclk.c,v 1.5 2005/06/04 20:14:24 he Exp $ */
|
||||
/* $NetBSD: epclk.c,v 1.6 2005/06/04 22:37:51 he Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004 Jesse Off
|
||||
|
@ -47,7 +47,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: epclk.c,v 1.5 2005/06/04 20:14:24 he Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: epclk.c,v 1.6 2005/06/04 22:37:51 he Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -183,7 +183,7 @@ epclk_intr(void *arg)
|
|||
* recalculate the intervals here, but that would be a pain.
|
||||
*/
|
||||
void
|
||||
setstatclockrate(int hz)
|
||||
setstatclockrate(int newhz)
|
||||
{
|
||||
|
||||
/* use hardclock */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: epcom.c,v 1.2 2004/12/29 06:31:32 joff Exp $ */
|
||||
/* $NetBSD: epcom.c,v 1.3 2005/06/04 22:37:51 he Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1998, 1999, 2001, 2002, 2004 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
|
@ -80,7 +80,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: epcom.c,v 1.2 2004/12/29 06:31:32 joff Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: epcom.c,v 1.3 2005/06/04 22:37:51 he Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_kgdb.h"
|
||||
|
@ -957,7 +957,7 @@ epcom_rxsoft(sc, tp)
|
|||
struct epcom_softc *sc;
|
||||
struct tty *tp;
|
||||
{
|
||||
int (*rint) __P((int c, struct tty *tp)) = tp->t_linesw->l_rint;
|
||||
int (*rint) __P((int, struct tty *)) = tp->t_linesw->l_rint;
|
||||
u_char *get, *end;
|
||||
u_int cc, scc;
|
||||
u_char sts;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: epsoc.c,v 1.1 2004/12/22 19:12:21 joff Exp $ */
|
||||
/* $NetBSD: epsoc.c,v 1.2 2005/06/04 22:37:51 he Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004 Jesse Off
|
||||
|
@ -34,7 +34,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: epsoc.c,v 1.1 2004/12/22 19:12:21 joff Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: epsoc.c,v 1.2 2005/06/04 22:37:51 he Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -84,7 +84,7 @@ epsoc_attach(struct device *parent, struct device *self, void *aux)
|
|||
struct epsoc_softc *sc;
|
||||
u_int64_t fclk, pclk, hclk;
|
||||
u_int32_t id, clkset1;
|
||||
char *rev;
|
||||
const char *rev;
|
||||
|
||||
|
||||
sc = (struct epsoc_softc*) self;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: s3c24x0_clk.c,v 1.3 2003/08/27 03:57:05 bsh Exp $ */
|
||||
/* $NetBSD: s3c24x0_clk.c,v 1.4 2005/06/04 22:37:51 he Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2003 Genetec corporation. All rights reserved.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: s3c24x0_clk.c,v 1.3 2003/08/27 03:57:05 bsh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: s3c24x0_clk.c,v 1.4 2005/06/04 22:37:51 he Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -254,8 +254,7 @@ resettodr(void)
|
|||
}
|
||||
|
||||
void
|
||||
setstatclockrate(hz)
|
||||
int hz;
|
||||
setstatclockrate(int newhz)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: s3c24x0_lcd.c,v 1.1 2004/02/14 07:12:50 bsh Exp $ */
|
||||
/* $NetBSD: s3c24x0_lcd.c,v 1.2 2005/06/04 22:37:51 he Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004 Genetec Corporation. All rights reserved.
|
||||
|
@ -34,7 +34,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: s3c24x0_lcd.c,v 1.1 2004/02/14 07:12:50 bsh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: s3c24x0_lcd.c,v 1.2 2005/06/04 22:37:51 he Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -522,8 +522,8 @@ s3c24x0_lcd_alloc_screen(void *v, const struct wsscreen_descr *_type,
|
|||
{
|
||||
struct s3c24x0_lcd_softc *sc = v;
|
||||
struct s3c24x0_lcd_screen *scr;
|
||||
struct s3c24x0_wsscreen_descr *type =
|
||||
(struct s3c24x0_wsscreen_descr *)_type;
|
||||
const struct s3c24x0_wsscreen_descr *type =
|
||||
(const struct s3c24x0_wsscreen_descr *)_type;
|
||||
|
||||
int width, height;
|
||||
|
||||
|
|
Loading…
Reference in New Issue