diff options
author | Andrew Cady <d@jerkface.net> | 2020-08-16 18:34:54 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-10-27 17:45:23 -0400 |
commit | 936ce37bf3288be95fe15c41179c522bff665c33 (patch) | |
tree | f1f2d5638ce2e0844e2c752913997f94cbecbe3e | |
parent | 857d6636d8e16e490a59a1b8c06b6143401a5395 (diff) |
eliminate warning about const pointer cast
-rw-r--r-- | auth-options.c | 6 | ||||
-rw-r--r-- | 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 @@ | |||
40 | #include "ssh2.h" | 40 | #include "ssh2.h" |
41 | #include "auth-options.h" | 41 | #include "auth-options.h" |
42 | 42 | ||
43 | char *wildcard_remote_key = NULL; | 43 | const char *wildcard_remote_key = NULL; |
44 | char *wildcard_remote_key_type = NULL; | 44 | const char *wildcard_remote_key_type = NULL; |
45 | char *wildcard_remote_key_fingerprint = NULL; | 45 | const char *wildcard_remote_key_fingerprint = NULL; |
46 | 46 | ||
47 | static int | 47 | static int |
48 | dup_strings(char ***dstp, size_t *ndstp, char **src, size_t nsrc) | 48 | 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 { | |||
75 | int require_verify; | 75 | int require_verify; |
76 | }; | 76 | }; |
77 | 77 | ||
78 | extern char *wildcard_remote_key; | 78 | extern const char *wildcard_remote_key; |
79 | extern char *wildcard_remote_key_type; | 79 | extern const char *wildcard_remote_key_type; |
80 | extern char *wildcard_remote_key_fingerprint; | 80 | extern const char *wildcard_remote_key_fingerprint; |
81 | 81 | ||
82 | struct sshauthopt *sshauthopt_new(void); | 82 | struct sshauthopt *sshauthopt_new(void); |
83 | struct sshauthopt *sshauthopt_new_with_keys_defaults(void); | 83 | struct sshauthopt *sshauthopt_new_with_keys_defaults(void); |