scepclient: Cast OID_UNKNOWN before comparing it to unsigned hash_algorithm_t
clang uses unsigned enums and complains about the always-false -1 check.
This commit is contained in:
1 parent
78db68cecf
commit
ed9bdfee41
1 file changed
+1
-1
@@ -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");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user