From 63300b49f30b3d63a551d4d568ae95fea24035ba Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Sat, 19 Aug 2017 17:16:13 +0200 Subject: Pointer parameter could be declared as pointing to const --- common-algo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common-algo.c') diff --git a/common-algo.c b/common-algo.c index f783816..48a92e8 100644 --- a/common-algo.c +++ b/common-algo.c @@ -314,7 +314,7 @@ algo_type sshkex[] = { * against. * Returns DROPBEAR_SUCCESS if we have a match for algo, DROPBEAR_FAILURE * otherwise */ -int have_algo(char* algo, size_t algolen, algo_type algos[]) { +int have_algo(const char* algo, size_t algolen, const algo_type algos[]) { int i; @@ -329,7 +329,7 @@ int have_algo(char* algo, size_t algolen, algo_type algos[]) { } /* Output a comma separated list of algorithms to a buffer */ -void buf_put_algolist(buffer * buf, algo_type localalgos[]) { +void buf_put_algolist(buffer * buf, const algo_type localalgos[]) { unsigned int i, len; unsigned int donefirst = 0; @@ -501,7 +501,7 @@ get_algo_usable(algo_type algos[], const char * algo_name) #if DROPBEAR_USER_ALGO_LIST char * -algolist_string(algo_type algos[]) +algolist_string(const algo_type algos[]) { char *ret_list; buffer *b = buf_new(200); -- cgit v1.2.1