aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-07-24 22:19:40 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-07-24 22:19:40 +0200
commitfa11083fcb1398d17b5439e7d9d2e96aae8b808c (patch)
tree59f85f0f2b6c6bf0eb91eed36c15705ebe9cb6d0 /libssh
parent2bc8819e8f68014ba35d03e56393e4d0c16386f8 (diff)
downloadlibssh-fa11083fcb1398d17b5439e7d9d2e96aae8b808c.tar.gz
libssh-fa11083fcb1398d17b5439e7d9d2e96aae8b808c.tar.xz
libssh-fa11083fcb1398d17b5439e7d9d2e96aae8b808c.zip
Change refs from AGENT * to ssh_agent
Fixes also a typo in ssh_agent declaration
Diffstat (limited to 'libssh')
-rw-r--r--libssh/agent.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libssh/agent.c b/libssh/agent.c
index ecc9b4df..3ef41e48 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);