zephyr/drivers/regulator
Gerard Marull-Paretas 24f2c30678 drivers: regulator: shell: fix isdigit() usage
ISO/IEC 9899:1999 (C Standard), §7.4 Character handling <ctype.h>:

In all cases the argument is an int, the value of which shall be
representable as an unsigned char or shall equal the value of the macro
EOF. If the argument has any other value, the behavior is undefined.

So add a cast to unsigned char to make sure we do not trigger UB.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-01-04 11:19:25 +01:00
..
CMakeLists.txt drivers: regulator: add fake driver 2022-12-20 10:15:29 +00:00
Kconfig drivers: regulator: add fake driver 2022-12-20 10:15:29 +00:00
Kconfig.fake drivers: regulator: add fake driver 2022-12-20 10:15:29 +00:00
Kconfig.fixed drivers: regulator: Update Kconfig 2022-08-17 09:58:55 -05:00
Kconfig.npm6001 drivers: regulator: initial driver for nPM6001 2022-12-16 11:26:47 +01:00
Kconfig.pca9420 drivers: regulator: pca9420: store common config in parent device 2022-11-29 11:54:31 +01:00
regulator_common.c drivers: regulator: apply initial mode 2022-12-27 13:12:55 +01:00
regulator_fake.c drivers: regulator: add get_mode API 2022-12-27 13:12:55 +01:00
regulator_fixed.c drivers: regulator: add common init enable API 2022-12-14 17:01:44 +01:00
regulator_npm6001.c drivers: regulator: npm6001: add support for get_mode 2022-12-27 13:12:55 +01:00
regulator_pca9420.c drivers: regulator: add common init enable API 2022-12-14 17:01:44 +01:00
regulator_shell.c drivers: regulator: shell: fix isdigit() usage 2023-01-04 11:19:25 +01:00