Code

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 e0de0d9b314ed53575b7e5f00b08921a03834642..cf23f5b37eea4e6505f62cb8ac37c65def408a07 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;