1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +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

@ -453,7 +453,7 @@ connect_local_xsocket(int display_number)
static int
x11_connect_display()
x11_connect_display(void)
{
int display_number;
const char *display = NULL;