From: Doug MacEachern Date: Wed, 6 May 2009 08:42:01 +0000 (+0200) Subject: uuid plugin: Pass `int' to `isxdigit'. X-Git-Tag: collectd-4.5.4~7 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=068ae14b916aa298995433da83302032c5e57c76;p=collectd.git uuid plugin: Pass `int' to `isxdigit'. Fixes compilation on NetBSD and possibly other systems. Signed-off-by: Doug MacEachern Signed-off-by: Florian Forster --- 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;