mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 18:28:10 +09:00
misc: Fix definitions of ssh_list_new().
Fixes sparse warnings.
This commit is contained in:
@@ -363,7 +363,7 @@ const char *ssh_version(int req_version) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ssh_list *ssh_list_new(){
|
struct ssh_list *ssh_list_new(void) {
|
||||||
struct ssh_list *ret=malloc(sizeof(struct ssh_list));
|
struct ssh_list *ret=malloc(sizeof(struct ssh_list));
|
||||||
if(!ret)
|
if(!ret)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user