]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xmon: use isspace/isxdigit/isalnum from linux/ctype.h
authorVincent Bernat <vincent@bernat.im>
Tue, 15 Jul 2014 11:43:47 +0000 (13:43 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Dec 2014 04:45:43 +0000 (15:45 +1100)
commit5da1ad7e086bcd085c6bd087e8df75d38e6c7ddc
tree0619f47359e1ecc71bf4c587bdec9b8b9c0db0c9
parentabf49d5c50a078b9142dd6705d79125dba297b57
powerpc/xmon: use isspace/isxdigit/isalnum from linux/ctype.h

isxdigit() macro definition is the same.

isalnum() from linux/ctype.h will accept additional latin non-ASCII
characters. This is harmless since this macro is used in scanhex() which
parses user input.

isspace() from linux/ctype.h will accept vertical tab and form feed but
not NULL. The use of this macro is modified to accept NULL as
well. Additional characters are harmless since this macro is also only
used in scanhex().

Signed-off-by: Vincent Bernat <vincent@bernat.im>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c