From 936ce37bf3288be95fe15c41179c522bff665c33 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 d6c4e41b2..a15bc0502 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 e64acdf70..c6b475be4 100644 --- a/auth-options.h +++ b/auth-options.h @@ -75,9 +75,9 @@ struct sshauthopt { int require_verify; }; -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