Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pcmcia cc1: warnings being treated as errors
details: https://anonhg.NetBSD.org/src/rev/b0c776c8faa1
branches: trunk
changeset: 581924:b0c776c8faa1
user: itohy <itohy%NetBSD.org@localhost>
date: Fri Jun 10 14:08:06 2005 +0000
description:
cc1: warnings being treated as errors
../../../../dev/pcmcia/if_wi_pcmcia.c: In function `wi_pcmcia_write_firm':
../../../../dev/pcmcia/if_wi_pcmcia.c:511: warning: cast discards qualifiers from pointer target type
../../../../dev/pcmcia/if_wi_pcmcia.c:512: warning: cast discards qualifiers from pointer target type
diffstat:
sys/dev/pcmcia/if_wi_pcmcia.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 033a2f55c4f6 -r b0c776c8faa1 sys/dev/pcmcia/if_wi_pcmcia.c
--- a/sys/dev/pcmcia/if_wi_pcmcia.c Fri Jun 10 13:22:42 2005 +0000
+++ b/sys/dev/pcmcia/if_wi_pcmcia.c Fri Jun 10 14:08:06 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wi_pcmcia.c,v 1.64 2005/05/07 17:02:47 martin Exp $ */
+/* $NetBSD: if_wi_pcmcia.c,v 1.65 2005/06/10 14:08:06 itohy Exp $ */
/*-
* Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wi_pcmcia.c,v 1.64 2005/05/07 17:02:47 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wi_pcmcia.c,v 1.65 2005/06/10 14:08:06 itohy Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -497,6 +497,7 @@
int buflen, ebuflen;
{
const u_int8_t *p, *ep, *q, *eq;
+ char *endp;
u_int32_t addr, id, eid;
int i, len, elen, nblk, pdrlen;
@@ -508,8 +509,10 @@
while (p < ep && *p++ != ' '); /* FILE: */
while (p < ep && *p++ != ' '); /* filename */
while (p < ep && *p++ != ' '); /* type of the firmware */
- nblk = strtoul(p, (void *)&p, 10);
- pdrlen = strtoul(p + 1, (void *)&p, 10);
+ nblk = strtoul(p, &endp, 10);
+ p = (void *)endp;
+ pdrlen = strtoul(p + 1, &endp, 10);
+ p = (void *)endp;
while (p < ep && *p++ != 0x1a); /* skip rest of header */
/*
Home |
Main Index |
Thread Index |
Old Index