From: Martin Willi Date: Thu, 8 May 2014 11:54:33 +0000 (+0200) Subject: scepclient: Cast OID_UNKNOWN before comparing it to unsigned hash_algorithm_t X-Git-Tag: 5.2.0dr5~39^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed9bdfee4117fce3db9358ed054bc0226365447d;p=thirdparty%2Fstrongswan.git scepclient: Cast OID_UNKNOWN before comparing it to unsigned hash_algorithm_t clang uses unsigned enums and complains about the always-false -1 check. --- diff --git a/src/scepclient/scepclient.c b/src/scepclient/scepclient.c index d7abcb4235..853490f61c 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"); }