From 068ae14b916aa298995433da83302032c5e57c76 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 6 May 2009 10:42:01 +0200 Subject: [PATCH] uuid plugin: Pass `int' to `isxdigit'. Fixes compilation on NetBSD and possibly other systems. Signed-off-by: Doug MacEachern Signed-off-by: Florian Forster --- src/uuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uuid.c b/src/uuid.c index e0de0d9b..cf23f5b3 100644 --- a/src/uuid.c +++ b/src/uuid.c @@ -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; -- 2.30.2