aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-03-04 20:07:35 +0100
committerAndreas Schneider <mail@cynapses.org>2010-03-04 20:08:04 +0100
commit9f59be3224c1dcc34bd43c0bfea6b37f8e6f9bbf (patch)
tree3b1836da83f315cf8e34a2d411066d063120afa1
parentdea644bbd65b6cc2d60956ff2be1399f63ac1782 (diff)
downloadlibssh-9f59be3224c1dcc34bd43c0bfea6b37f8e6f9bbf.tar.gz
libssh-9f59be3224c1dcc34bd43c0bfea6b37f8e6f9bbf.tar.xz
libssh-9f59be3224c1dcc34bd43c0bfea6b37f8e6f9bbf.zip
Rename ssh_list_add to ssh_list_append.
-rw-r--r--include/libssh/misc.h2
-rw-r--r--libssh/messages.c2
-rw-r--r--libssh/misc.c2
-rw-r--r--libssh/packet.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/include/libssh/misc.h b/include/libssh/misc.h
index 35089d43..647faedc 100644
--- a/include/libssh/misc.h
+++ b/include/libssh/misc.h
@@ -46,7 +46,7 @@ struct ssh_iterator {
struct ssh_list *ssh_list_new(void);
void ssh_list_free(struct ssh_list *list);
struct ssh_iterator *ssh_list_get_iterator(const struct ssh_list *list);
-int ssh_list_add(struct ssh_list *list, const void *data);
+int ssh_list_append(struct ssh_list *list, const void *data);
int ssh_list_prepend(struct ssh_list *list, const void *data);
void ssh_list_remove(struct ssh_list *list, struct ssh_iterator *iterator);
diff --git a/libssh/messages.c b/libssh/messages.c
index 9b9900e5..46492ad7 100644
--- a/libssh/messages.c
+++ b/libssh/messages.c
@@ -787,7 +787,7 @@ void ssh_message_queue(ssh_session session, ssh_message message){
if(session->ssh_message_list == NULL){
session->ssh_message_list=ssh_list_new();
}
- ssh_list_add(session->ssh_message_list,message);
+ ssh_list_append(session->ssh_message_list, message);
}
}
diff --git a/libssh/misc.c b/libssh/misc.c
index 76f72a72..95b20306 100644
--- a/libssh/misc.c
+++ b/libssh/misc.c
@@ -222,7 +222,7 @@ static struct ssh_iterator *ssh_iterator_new(const void *data){
return iterator;
}
-int ssh_list_add(struct ssh_list *list,const void *data){
+int ssh_list_append(struct ssh_list *list,const void *data){
struct ssh_iterator *iterator=ssh_iterator_new(data);
if(!iterator)
return SSH_ERROR;
diff --git a/libssh/packet.c b/libssh/packet.c
index 208b1700..4003ed1e 100644
--- a/libssh/packet.c
+++ b/libssh/packet.c
@@ -302,7 +302,7 @@ void ssh_packet_set_callbacks(ssh_session session, ssh_packet_callbacks callback
if(session->packet_callbacks == NULL){
session->packet_callbacks = ssh_list_new();
}
- ssh_list_add(session->packet_callbacks,callbacks);
+ ssh_list_append(session->packet_callbacks, callbacks);
}
/** @internal