freebsd-dev/sys/dev/ppbus
Dimitry Andric 3128fa9a5a With clang 3.9.0, compiling ppbus(4) results in the following warnings:
sys/dev/ppbus/ppb_1284.c:296:46: error: implicit conversion from 'int'
to 'char' changes value from 144 to -112 [-Werror,-Wconstant-conversion]
        if ((error = do_peripheral_wait(bus, SELECT | nBUSY, 0))) {
                     ~~~~~~~~~~~~~~~~~~      ~~~~~~~^~~~~~~
sys/dev/ppbus/ppb_1284.c:785:48: error: implicit conversion from 'int'
to 'char' changes value from 240 to -16 [-Werror,-Wconstant-conversion]
                if (do_1284_wait(bus, nACK | SELECT | PERROR | nBUSY,
                    ~~~~~~~~~~~~      ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
sys/dev/ppbus/ppb_1284.c:786:29: error: implicit conversion from 'int'
to 'char' changes value from 240 to -16 [-Werror,-Wconstant-conversion]
                                        nACK | SELECT | PERROR | nBUSY)) {
                                        ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~

This is because nBUSY is 0x80, so the plain char argument is wrapped to
a negative value.  Fix this in a minimal fashion, by using uint8_t in a
few places.

Reviewed by:	emaste
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D7771
2016-09-03 13:48:44 +00:00
..
if_plip.c
immio.c
lpbb.c
lpt.c sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
lpt.h
lptio.h
pcfclock.c
ppb_1284.c With clang 3.9.0, compiling ppbus(4) results in the following warnings: 2016-09-03 13:48:44 +00:00
ppb_1284.h
ppb_base.c With clang 3.9.0, compiling ppbus(4) results in the following warnings: 2016-09-03 13:48:44 +00:00
ppb_msq.c
ppb_msq.h
ppbconf.c
ppbconf.h With clang 3.9.0, compiling ppbus(4) results in the following warnings: 2016-09-03 13:48:44 +00:00
ppbio.h
ppbus_if.m
ppi.c
ppi.h
pps.c
vpo.c sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
vpoio.c sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
vpoio.h