summaryrefslogtreecommitdiffstats
path: root/sys/dev/nsp
diff options
context:
space:
mode:
authornon <non@FreeBSD.org>2001-01-02 10:41:50 +0000
committernon <non@FreeBSD.org>2001-01-02 10:41:50 +0000
commitf41cea7e3911617cd40849a9e2785c99afd6c520 (patch)
tree0dfc7fc0556336e63d8efb6a0ea8b1940225221f /sys/dev/nsp
parent75f809e410c1e952f025f36a7d4be594050bd5ef (diff)
downloadFreeBSD-src-f41cea7e3911617cd40849a9e2785c99afd6c520.zip
FreeBSD-src-f41cea7e3911617cd40849a9e2785c99afd6c520.tar.gz
Remove conflicts between unsinged char *s and int s.
It was possible cause of kernel panic. Pointed Out by: phk@FreeBSD.ORG
Diffstat (limited to 'sys/dev/nsp')
-rw-r--r--sys/dev/nsp/nsp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/nsp/nsp.c b/sys/dev/nsp/nsp.c
index c2b6762..375c838 100644
--- a/sys/dev/nsp/nsp.c
+++ b/sys/dev/nsp/nsp.c
@@ -880,7 +880,7 @@ nsp_negate_signal(sc, mask, s)
bus_space_tag_t bst = sc->sc_iot;
bus_space_handle_t bsh = sc->sc_ioh;
int tout = 0;
- int s;
+ int ss;
#ifdef __FreeBSD__
struct callout_handle ch;
#endif
@@ -899,16 +899,16 @@ nsp_negate_signal(sc, mask, s)
}
while ((regv & mask) != 0 && tout == 0);
- s = splhigh();
+ ss = splhigh();
if (tout == 0) {
#ifdef __FreeBSD__
untimeout(settimeout, &tout, ch);
#else
untimeout(settimeout, &tout);
#endif
- splx(s);
+ splx(ss);
} else {
- splx(s);
+ splx(ss);
printf("%s: %s singla off timeout \n", slp->sl_xname, s);
}
OpenPOWER on IntegriCloud