diff options
author | Andrew Cady <d@jerkface.net> | 2020-08-16 18:34:54 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-08-16 18:34:54 -0400 |
commit | 9c4a6fdd68cc5218d077618f213ceeeccb446625 (patch) | |
tree | ab4afde61c4c7ca081f1c514d650c530ec4925b2 | |
parent | e31f067e0bb0c5aea08fb5f828365b135ce60613 (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 ccddd1af3..68b5fc40f 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 7b5af66ed..d22aca91d 100644 --- a/auth-options.h +++ b/auth-options.h | |||
@@ -73,9 +73,9 @@ struct sshauthopt { | |||
73 | int no_require_user_presence; | 73 | int no_require_user_presence; |
74 | }; | 74 | }; |
75 | 75 | ||
76 | extern char *wildcard_remote_key; | 76 | extern const char *wildcard_remote_key; |
77 | extern char *wildcard_remote_key_type; | 77 | extern const char *wildcard_remote_key_type; |
78 | extern char *wildcard_remote_key_fingerprint; | 78 | extern const char *wildcard_remote_key_fingerprint; |
79 | 79 | ||
80 | struct sshauthopt *sshauthopt_new(void); | 80 | struct sshauthopt *sshauthopt_new(void); |
81 | struct sshauthopt *sshauthopt_new_with_keys_defaults(void); | 81 | struct sshauthopt *sshauthopt_new_with_keys_defaults(void); |