HomeFreeBSD

Fix enum warning in heimdal

Description

Fix enum warning in heimdal

This fixes a clang 19 warning:

crypto/heimdal/lib/krb5/deprecated.c:75:17: error: comparison of different enumeration types ('krb5_keytype' (aka 'enum ENCTYPE') and 'enum krb5_keytype_old') [-Werror,-Wenum-compare]

75 |     if (keytype != KEYTYPE_DES || context->etypes_des == NULL)
   |         ~~~~~~~ ^  ~~~~~~~~~~~

In https://github.com/heimdal/heimdal/commit/3bebbe5323 this was solved
by adding a cast. That commit is rather large, so I'm only applying the
one-liner here.

MFC after: 3 days

Details

Provenance
dimAuthored on Jul 30 2024, 6:31 PM
Parents
rG057453ffdf57: filemon: Document how to build into the kernel.
Branches
Unknown
Tags
Unknown