diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2009-02-24 18:09:31 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2009-02-24 18:09:31 +0000 |
commit | e5bfcba0804aec97eaffc409174ebf4d4fe91cca (patch) | |
tree | 5b25b63fa72c76fa803c05da612b120833bed4dd /sys/dev/nsp | |
parent | edb8ebb3d4aa8e53f32e1e24b0fb93b1120361f0 (diff) | |
download | FreeBSD-src-e5bfcba0804aec97eaffc409174ebf4d4fe91cca.zip FreeBSD-src-e5bfcba0804aec97eaffc409174ebf4d4fe91cca.tar.gz |
Change the functions to ANSI in those cases where it breaks promotion
to int rule. See ISO C Standard: SS6.7.5.3:15.
Approved by: kib (mentor)
Reviewed by: warner
Tested by: silence on -current
Diffstat (limited to 'sys/dev/nsp')
-rw-r--r-- | sys/dev/nsp/nsp.c | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/sys/dev/nsp/nsp.c b/sys/dev/nsp/nsp.c index 3b394f7..f18f68c 100644 --- a/sys/dev/nsp/nsp.c +++ b/sys/dev/nsp/nsp.c @@ -218,11 +218,8 @@ nsp_cr_read_1(bst, bsh, ofs) } static __inline void -nsp_cr_write_1(bst, bsh, ofs, va) - bus_space_tag_t bst; - bus_space_handle_t bsh; - bus_addr_t ofs; - u_int8_t va; +nsp_cr_write_1(bus_space_tag_t bst, bus_space_handle_t bsh, bus_addr_t ofs, + u_int8_t va) { bus_space_write_1(bst, bsh, nsp_idxr, ofs); @@ -230,9 +227,7 @@ nsp_cr_write_1(bst, bsh, ofs, va) } static int -nsp_expect_signal(sc, curphase, mask) - struct nsp_softc *sc; - u_int8_t curphase, mask; +nsp_expect_signal(struct nsp_softc *sc, u_int8_t curphase, u_int8_t mask) { struct scsi_low_softc *slp = &sc->sc_sclow; bus_space_tag_t bst = sc->sc_iot; @@ -1224,10 +1219,7 @@ WriteLoop: } static int -nsp_negate_signal(sc, mask, s) - struct nsp_softc *sc; - u_int8_t mask; - u_char *s; +nsp_negate_signal(struct nsp_softc *sc, u_int8_t mask, u_char *s) { struct scsi_low_softc *slp = &sc->sc_sclow; bus_space_tag_t bst = sc->sc_iot; @@ -1354,10 +1346,8 @@ nsp_disconnected(sc, ti) static void nsp_error(struct nsp_softc *, u_char *, u_int8_t, u_int8_t, u_int8_t); static void -nsp_error(sc, s, isrc, ph, irqphs) - struct nsp_softc *sc; - u_char *s; - u_int8_t isrc, ph, irqphs; +nsp_error(struct nsp_softc * sc, u_char *s, u_int8_t isrc, u_int8_t ph, + u_int8_t irqphs) { struct scsi_low_softc *slp = &sc->sc_sclow; @@ -1430,10 +1420,7 @@ nsp_ccb_nexus_establish(sc) } static int -nsp_phase_match(sc, phase, stat) - struct nsp_softc *sc; - u_int8_t phase; - u_int8_t stat; +nsp_phase_match(struct nsp_softc *sc, u_int8_t phase, u_int8_t stat) { struct scsi_low_softc *slp = &sc->sc_sclow; |