From ed9bdfee4117fce3db9358ed054bc0226365447d Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 8 May 2014 13:54:33 +0200 Subject: [PATCH] scepclient: Cast OID_UNKNOWN before comparing it to unsigned hash_algorithm_t clang uses unsigned enums and complains about the always-false -1 check. --- src/scepclient/scepclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scepclient/scepclient.c b/src/scepclient/scepclient.c index d7abcb423..853490f61 100644 --- a/src/scepclient/scepclient.c +++ b/src/scepclient/scepclient.c @@ -896,7 +896,7 @@ int main(int argc, char **argv) } hash = hasher_algorithm_from_integrity(token->algorithm, NULL); - if (hash == OID_UNKNOWN) + if (hash == (hash_algorithm_t)OID_UNKNOWN) { usage("invalid algorithm specified"); }