From 9c4a6fdd68cc5218d077618f213ceeeccb446625 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sun, 16 Aug 2020 18:34:54 -0400 Subject: eliminate warning about const pointer cast --- auth-options.c | 6 +++--- auth-options.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/auth-options.c b/auth-options.c index ccddd1af3..68b5fc40f 100644 --- a/auth-options.c +++ b/auth-options.c @@ -40,9 +40,9 @@ #include "ssh2.h" #include "auth-options.h" -char *wildcard_remote_key = NULL; -char *wildcard_remote_key_type = NULL; -char *wildcard_remote_key_fingerprint = NULL; +const char *wildcard_remote_key = NULL; +const char *wildcard_remote_key_type = NULL; +const char *wildcard_remote_key_fingerprint = NULL; static int dup_strings(char ***dstp, size_t *ndstp, char **src, size_t nsrc) diff --git a/auth-options.h b/auth-options.h index 7b5af66ed..d22aca91d 100644 --- a/auth-options.h +++ b/auth-options.h @@ -73,9 +73,9 @@ struct sshauthopt { int no_require_user_presence; }; -extern char *wildcard_remote_key; -extern char *wildcard_remote_key_type; -extern char *wildcard_remote_key_fingerprint; +extern const char *wildcard_remote_key; +extern const char *wildcard_remote_key_type; +extern const char *wildcard_remote_key_fingerprint; struct sshauthopt *sshauthopt_new(void); struct sshauthopt *sshauthopt_new_with_keys_defaults(void); -- cgit v1.2.3