diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-19 10:18:24 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-19 10:18:24 +0200 |
commit | 8336c91e9c7f5a672ebffecb9a0772892e197283 (patch) | |
tree | f698808f6be7a9efc9ee93057bf19dcc318d1f8c /include | |
parent | 1bea53375b2fb764d9a900a0946d71d7baafb00f (diff) | |
download | libssh-8336c91e9c7f5a672ebffecb9a0772892e197283.tar.gz libssh-8336c91e9c7f5a672ebffecb9a0772892e197283.tar.xz libssh-8336c91e9c7f5a672ebffecb9a0772892e197283.zip |
Verify memory return codes in ssh_list functions
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/priv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index dab9aa73..4c380deb 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -723,7 +723,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); -void ssh_list_add(struct ssh_list *list, const void *data); +int ssh_list_add(struct ssh_list *list, const void *data); void ssh_list_remove(struct ssh_list *list, struct ssh_iterator *iterator); /** @brief fetch the head element of a list and remove it from list |