diff cli-authpubkey.c @ 1459:06d52bcb8094

Pointer parameter could be declared as pointing to const
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Aug 2017 17:16:13 +0200
parents 750ec4ec4cbe
children ba6fc7afe1c5
line wrap: on
line diff
--- a/cli-authpubkey.c	Sat Aug 12 20:51:58 2017 +0200
+++ b/cli-authpubkey.c	Sat Aug 19 17:16:13 2017 +0200
@@ -121,7 +121,7 @@
 }
 
 void cli_buf_put_sign(buffer* buf, sign_key *key, int type, 
-			buffer *data_buf) {
+			const buffer *data_buf) {
 #if DROPBEAR_CLI_AGENTFWD
 	if (key->source == SIGNKEY_SOURCE_AGENT) {
 		/* Format the agent signature ourselves, as buf_put_sign would. */