mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-15 15:16:53 +02:00
Replace reintroduced legacy u_* type usage in strnvis() and strnunvis()
This fixes a regression caused by2d7de18
. These types are not available on all systems. Fixes: commit2d7de186e9
Signed-off-by: Guillem Jover <guillem@hadrons.org>
This commit is contained in:

committed by
Guillem Jover

parent
5e0998fa4f
commit
81c3c3e405
@@ -68,7 +68,8 @@ __weak_alias(strnunvisx,_strnunvisx)
|
||||
#define S_NUMBER 14 /* collecting number */
|
||||
#define S_STRING 15 /* collecting string */
|
||||
|
||||
#define isoctal(c) (((u_char)(c)) >= '0' && ((u_char)(c)) <= '7')
|
||||
#define isoctal(c) \
|
||||
(((unsigned char)(c)) >= '0' && ((unsigned char)(c)) <= '7')
|
||||
#define xtod(c) (isdigit(c) ? (c - '0') : ((tolower(c) - 'a') + 10))
|
||||
#define XTOD(c) (isdigit(c) ? (c - '0') : ((c - 'A') + 10))
|
||||
|
||||
|
Reference in New Issue
Block a user