[warnings] fix clang-tidy warnings

This commit is contained in:
akallabeth
2025-05-23 15:20:16 +02:00
parent 5d088ce9c0
commit 34ab0b893d
9 changed files with 39 additions and 31 deletions

View File

@@ -32,7 +32,7 @@
#include "../log.h"
#define TAG WINPR_TAG("clipboard")
const char* mime_text_plain = "text/plain";
const char* const mime_text_plain = "text/plain";
/**
* Clipboard (Windows):

View File

@@ -72,6 +72,6 @@ WINPR_LOCAL BOOL ClipboardInitSynthesizers(wClipboard* clipboard);
WINPR_LOCAL char* parse_uri_to_local_file(const char* uri, size_t uri_len);
extern const char* mime_text_plain;
extern const char* const mime_text_plain;
#endif /* WINPR_CLIPBOARD_PRIVATE_H */

View File

@@ -50,7 +50,8 @@ krb5_error_code krb5glue_update_keyset(krb5_context ctx, krb5_auth_context auth_
krb5glue_keys_free(ctx, keyset);
if (!(rv = krb5_auth_con_getkey(ctx, auth_ctx, &keyblock)))
rv = krb5_auth_con_getkey(ctx, auth_ctx, &keyblock);
if (!rv)
{
krb5_crypto_init(ctx, keyblock, ENCTYPE_NULL, &keyset->session_key);
krb5_free_keyblock(ctx, keyblock);