]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
leapdb: fix compiler warning on NetBSD about isspace()
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 8 Oct 2025 11:00:24 +0000 (13:00 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 9 Oct 2025 08:44:31 +0000 (10:44 +0200)
leapdb.c

index c5da0ad4e5923cd072c5437c642b26e4bb3a4b02..80da808b9133247b4da1141dc00da44ef012fbc1 100644 (file)
--- a/leapdb.c
+++ b/leapdb.c
@@ -130,7 +130,7 @@ get_list_leap(time_t when, int *tai_offset)
     char *p;
 
     /* Ignore blank lines */
-    for (p = line; *p && isspace(*p); ++p)
+    for (p = line; *p && isspace((unsigned char)*p); ++p)
       ;
     if (!*p)
       continue;