aboutsummaryrefslogtreecommitdiffstats
path: root/src/operand2sig.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2024-12-30 10:45:54 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2024-12-30 10:55:23 -0800
commit9eb131e53029a648b549f507cac47f4769031073 (patch)
tree6598314d9b702383eef608014e7c4c773953cec8 /src/operand2sig.c
parenttests: improve the chmod/symlinks.sh test (diff)
downloadcoreutils-9eb131e53029a648b549f507cac47f4769031073.tar.gz
coreutils-9eb131e53029a648b549f507cac47f4769031073.zip
maint: ISDIGIT → c_isdigit
* gl/lib/strnumcmp-in.h (ISDIGIT): * src/system.h (ISDIGIT): Remove. All uses replaced by c_isdigit, with appropriate inclusions of c-ctype.h. This is more regular, and is more portable to existing (but unlikely) platforms where INT_MAX == UINT_MAX.
Diffstat (limited to 'src/operand2sig.c')
-rw-r--r--src/operand2sig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/operand2sig.c b/src/operand2sig.c
index b46cb1bed..fe8749444 100644
--- a/src/operand2sig.c
+++ b/src/operand2sig.c
@@ -27,6 +27,7 @@
#include <sys/wait.h>
#include "system.h"
+#include "c-ctype.h"
#include "quote.h"
#include "sig2str.h"
#include "operand2sig.h"
@@ -36,7 +37,7 @@ operand2sig (char const *operand)
{
int signum;
- if (ISDIGIT (*operand))
+ if (c_isdigit (*operand))
{
/* Note we don't put a limit on the maximum value passed,
because we're checking shell $? values here, and ksh for