os: utils: drop unused USE_ISPRINT
This always had been disabled since it's incarnation XFree86 4.3.0.1,
back two decades ago, so there's likely no need for it.
Fixes: d568221710
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1518>
This commit is contained in:
parent
b5d897d126
commit
4b94e4fa08
13
os/utils.c
13
os/utils.c
|
@ -1430,24 +1430,11 @@ PrivsElevated(void)
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Maybe the locale can be faked to make isprint(3) report that everything
|
||||
* is printable? Avoid it by default.
|
||||
*/
|
||||
#ifndef USE_ISPRINT
|
||||
#define USE_ISPRINT 0
|
||||
#endif
|
||||
|
||||
#define MAX_ARG_LENGTH 128
|
||||
#define MAX_ENV_LENGTH 256
|
||||
#define MAX_ENV_PATH_LENGTH 2048 /* Limit for *PATH and TERMCAP */
|
||||
|
||||
#if USE_ISPRINT
|
||||
#include <ctype.h>
|
||||
#define checkPrintable(c) isprint(c)
|
||||
#else
|
||||
#define checkPrintable(c) (((c) & 0x7f) >= 0x20 && ((c) & 0x7f) != 0x7f)
|
||||
#endif
|
||||
|
||||
enum BadCode {
|
||||
NotBad = 0,
|
||||
|
|
Loading…
Reference in New Issue