diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 17:16:13 +0200 |
---|---|---|
committer | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 17:16:13 +0200 |
commit | 63300b49f30b3d63a551d4d568ae95fea24035ba (patch) | |
tree | f0cbad938d5ecac73806a7d9a5ae25268086fb31 /algo.h | |
parent | 2eb1f9f6e588a675226bfefb379156378b065422 (diff) | |
download | dropbear-63300b49f30b3d63a551d4d568ae95fea24035ba.tar.gz |
Pointer parameter could be declared as pointing to const
Diffstat (limited to 'algo.h')
-rw-r--r-- | algo.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -112,8 +112,8 @@ struct dropbear_kex { const struct ltc_hash_descriptor *hash_desc; }; -int have_algo(char* algo, size_t algolen, algo_type algos[]); -void buf_put_algolist(buffer * buf, algo_type localalgos[]); +int have_algo(const char* algo, size_t algolen, const algo_type algos[]); +void buf_put_algolist(buffer * buf, const algo_type localalgos[]); enum kexguess2_used { KEXGUESS2_LOOK, @@ -131,7 +131,7 @@ algo_type * buf_match_algo(buffer* buf, algo_type localalgos[], #if DROPBEAR_USER_ALGO_LIST int check_user_algos(const char* user_algo_list, algo_type * algos, const char *algo_desc); -char * algolist_string(algo_type algos[]); +char * algolist_string(const algo_type algos[]); #endif enum { |