From fa11083fcb1398d17b5439e7d9d2e96aae8b808c Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Fri, 24 Jul 2009 22:19:40 +0200 Subject: Change refs from AGENT * to ssh_agent Fixes also a typo in ssh_agent declaration --- libssh/agent.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libssh/agent.c') diff --git a/libssh/agent.c b/libssh/agent.c index ecc9b4d..3ef41e4 100644 --- a/libssh/agent.c +++ b/libssh/agent.c @@ -118,10 +118,10 @@ static size_t atomicio(struct socket *s, void *buf, size_t n, int do_read) { return pos; } -AGENT *agent_new(struct ssh_session *session) { - AGENT *agent = NULL; +ssh_agent agent_new(struct ssh_session *session) { + ssh_agent agent = NULL; - agent = malloc(sizeof(AGENT)); + agent = malloc(sizeof(struct ssh_agent_struct)); if (agent == NULL) { return NULL; } @@ -147,7 +147,7 @@ void agent_close(struct ssh_agent_struct *agent) { } } -void agent_free(AGENT *agent) { +void agent_free(ssh_agent agent) { if (agent) { if (agent->ident) { buffer_free(agent->ident); -- cgit