aboutsummaryrefslogtreecommitdiff
path: root/bt-vhci.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-07-20 17:11:50 +0100
committerPeter Maydell <peter.maydell@linaro.org>2017-07-20 17:11:50 +0100
commit8568110702f1c4911b25e57914ac2e886357f802 (patch)
tree55eefe85c4f3f9cd529c61455109ed993e2d9c2f /bt-vhci.c
parenta235ea962d113b71244f457aef7a596929b9307b (diff)
Use qemu_tolower() and qemu_toupper(), not tolower() and toupper()
On NetBSD, where tolower() and toupper() are implemented using an array lookup, the compiler warns if you pass a plain 'char' to these functions: gdbstub.c:914:13: warning: array subscript has type 'char' This reflects the fact that toupper() and tolower() give undefined behaviour if they are passed a value that isn't a valid 'unsigned char' or EOF. We have qemu_tolower() and qemu_toupper() to avoid this problem; use them. (The use in scsi-generic.c does not trigger the warning because it passes a uint8_t; we switch it anyway, for consistency.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'bt-vhci.c')
0 files changed, 0 insertions, 0 deletions