Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic set error. Reported by;
details: https://anonhg.NetBSD.org/src/rev/c4b45e95b286
branches: trunk
changeset: 336018:c4b45e95b286
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 07 04:11:06 2015 +0000
description:
set error. Reported by;
http://www.m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html#Report-4
diffstat:
sys/dev/ic/an.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r 9589397defb5 -r c4b45e95b286 sys/dev/ic/an.c
--- a/sys/dev/ic/an.c Sat Feb 07 04:09:13 2015 +0000
+++ b/sys/dev/ic/an.c Sat Feb 07 04:11:06 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: an.c,v 1.61 2014/02/25 18:30:09 pooka Exp $ */
+/* $NetBSD: an.c,v 1.62 2015/02/07 04:11:06 christos Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul%ctr.columbia.edu@localhost>. All rights reserved.
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: an.c,v 1.61 2014/02/25 18:30:09 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: an.c,v 1.62 2015/02/07 04:11:06 christos Exp $");
#include <sys/param.h>
@@ -569,8 +569,8 @@
if (ic->ic_des_esslen)
memcpy(sc->sc_buf.sc_ssidlist.an_entry[0].an_ssid,
ic->ic_des_essid, ic->ic_des_esslen);
- if (an_write_rid(sc, AN_RID_SSIDLIST, &sc->sc_buf,
- sizeof(sc->sc_buf.sc_ssidlist)) != 0) {
+ if ((error = an_write_rid(sc, AN_RID_SSIDLIST, &sc->sc_buf,
+ sizeof(sc->sc_buf.sc_ssidlist))) != 0) {
printf("%s: failed to write ssid list\n", ifp->if_xname);
an_stop(ifp, 1);
return error;
@@ -604,8 +604,8 @@
printf("\n");
}
#endif
- if (an_write_rid(sc, AN_RID_GENCONFIG, &sc->sc_config,
- sizeof(sc->sc_config)) != 0) {
+ if ((error = an_write_rid(sc, AN_RID_GENCONFIG, &sc->sc_config,
+ sizeof(sc->sc_config))) != 0) {
printf("%s: failed to write config\n", ifp->if_xname);
an_stop(ifp, 1);
return error;
Home |
Main Index |
Thread Index |
Old Index