(submit/os-utils) 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>
This commit is contained in:
parent
c9ac30a8b4
commit
97a84d7e18
13
os/utils.c
13
os/utils.c
|
@ -1372,24 +1372,11 @@ PrivsElevated(void)
|
||||||
#endif
|
#endif
|
||||||
#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_ARG_LENGTH 128
|
||||||
#define MAX_ENV_LENGTH 256
|
#define MAX_ENV_LENGTH 256
|
||||||
#define MAX_ENV_PATH_LENGTH 2048 /* Limit for *PATH and TERMCAP */
|
#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)
|
#define checkPrintable(c) (((c) & 0x7f) >= 0x20 && ((c) & 0x7f) != 0x7f)
|
||||||
#endif
|
|
||||||
|
|
||||||
enum BadCode {
|
enum BadCode {
|
||||||
NotBad = 0,
|
NotBad = 0,
|
||||||
|
|
Loading…
Reference in New Issue