summaryrefslogtreecommitdiff
path: root/cli-agentfwd.c
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2017-08-19 17:16:13 +0200
committerFrancois Perrad <francois.perrad@gadz.org>2017-08-19 17:16:13 +0200
commit63300b49f30b3d63a551d4d568ae95fea24035ba (patch)
treef0cbad938d5ecac73806a7d9a5ae25268086fb31 /cli-agentfwd.c
parent2eb1f9f6e588a675226bfefb379156378b065422 (diff)
downloaddropbear-63300b49f30b3d63a551d4d568ae95fea24035ba.tar.gz
Pointer parameter could be declared as pointing to const
Diffstat (limited to 'cli-agentfwd.c')
-rw-r--r--cli-agentfwd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli-agentfwd.c b/cli-agentfwd.c
index bdca3ea..08a35e9 100644
--- a/cli-agentfwd.c
+++ b/cli-agentfwd.c
@@ -108,7 +108,7 @@ static int new_agent_chan(struct Channel * channel) {
data Any data, depending on packet type. Encoding as in the ssh packet
protocol.
*/
-static buffer * agent_request(unsigned char type, buffer *data) {
+static buffer * agent_request(unsigned char type, const buffer *data) {
buffer * payload = NULL;
buffer * inbuf = NULL;
@@ -230,7 +230,7 @@ out:
}
}
-void cli_setup_agent(struct Channel *channel) {
+void cli_setup_agent(const struct Channel *channel) {
if (!getenv("SSH_AUTH_SOCK")) {
return;
}
@@ -254,7 +254,7 @@ void cli_load_agent_keys(m_list *ret_list) {
}
void agent_buf_sign(buffer *sigblob, sign_key *key,
- buffer *data_buf) {
+ const buffer *data_buf) {
buffer *request_data = NULL;
buffer *response = NULL;
unsigned int siglen;