From 97a84d7e18b48846e46040d15e89603424c447aa Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 3 May 2024 12:58:19 +0200 Subject: [PATCH] (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: d568221710959cf7d783e6ff0fb80fb43a231124 Signed-off-by: Enrico Weigelt, metux IT consult --- os/utils.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/os/utils.c b/os/utils.c index bb14ddbb7..0cdf74fa4 100644 --- a/os/utils.c +++ b/os/utils.c @@ -1372,24 +1372,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 -#define checkPrintable(c) isprint(c) -#else #define checkPrintable(c) (((c) & 0x7f) >= 0x20 && ((c) & 0x7f) != 0x7f) -#endif enum BadCode { NotBad = 0,