mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-06 18:29:50 +09: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>
(cherry picked from commit 22f0f0dd60)
This commit is contained in:
committed by
Andreas Schneider
parent
92eedd8f19
commit
e3d0f60281
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user