uuid plugin: Pass `int' to `isxdigit'.
authorDoug MacEachern <dougm@hyperic.com>
Wed, 6 May 2009 08:42:01 +0000 (10:42 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 6 May 2009 08:42:01 +0000 (10:42 +0200)
Fixes compilation on NetBSD and possibly other systems.

Signed-off-by: Doug MacEachern <dougm@hyperic.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/uuid.c

index e0de0d9..cf23f5b 100644 (file)
@@ -55,7 +55,7 @@ looks_like_a_uuid (const char *uuid)
         return 0;
 
     while (*uuid) {
-        if (!isxdigit (*uuid) && *uuid != '-') return 0;
+        if (!isxdigit ((int)*uuid) && *uuid != '-') return 0;
         uuid++;
     }
     return 1;