1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-28 01:41:48 +03:00

examples: Fix build issue with new clang 15

The error was  the following

/builds/libssh/libssh-mirror/examples/sshnetcat.c:241:18: error: a function
declaration without a prototype is deprecated in all versions of C
[-Werror,-Wstrict-prototypes]
void cleanup_pcap(){
                 ^
                  void

and similar

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
Jakub Jelen
2022-10-12 13:03:45 +02:00
parent 78978dc6ce
commit 22f0f0dd60
4 changed files with 17 additions and 16 deletions

View File

@ -238,9 +238,10 @@ void set_pcap(ssh_session session){
}
void cleanup_pcap(void);
void cleanup_pcap(){
void cleanup_pcap(void)
{
ssh_pcap_file_free(pcap);
pcap=NULL;
pcap = NULL;
}
#endif