aboutsummaryrefslogtreecommitdiff
path: root/contrib/ntp/libntp/atoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/libntp/atoint.c')
-rw-r--r--contrib/ntp/libntp/atoint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/ntp/libntp/atoint.c b/contrib/ntp/libntp/atoint.c
index 46cd96d19cf7..9da8c13c32d6 100644
--- a/contrib/ntp/libntp/atoint.c
+++ b/contrib/ntp/libntp/atoint.c
@@ -1,6 +1,7 @@
/*
* atoint - convert an ascii string to a signed long, with error checking
*/
+#include <config.h>
#include <sys/types.h>
#include <ctype.h>
@@ -34,7 +35,7 @@ atoint(
u = 0;
while (*cp != '\0') {
- if (!isdigit((int)*cp))
+ if (!isdigit((unsigned char)*cp))
return 0;
if (u > 214748364 || (u == 214748364 && *cp > oflow_digit))
return 0; /* overflow */