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:
Jakub Jelen
2022-10-12 13:03:45 +02:00
committed by Andreas Schneider
parent 92eedd8f19
commit e3d0f60281
4 changed files with 17 additions and 16 deletions

View File

@@ -278,7 +278,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,
*
* @see ssh_init()
*/
bool is_ssh_initialized() {
bool is_ssh_initialized(void) {
bool is_initialized = false;