From 5411e0821fdd460820460e9a35fdffb554dc9e24 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 27 Apr 2020 18:40:21 +0200 Subject: [PATCH] fuzz: Correctly sort members initialization to prevent GCC warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tests/fuzz/ssh_client_fuzzer.cpp:45:1: error: designator order for field ‘ssh_callbacks_struct::userdata’ does not match declaration order in ‘ssh_callbacks_struct’ Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- tests/fuzz/ssh_client_fuzzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fuzz/ssh_client_fuzzer.cpp b/tests/fuzz/ssh_client_fuzzer.cpp index 6f96c30e..87bfa10b 100644 --- a/tests/fuzz/ssh_client_fuzzer.cpp +++ b/tests/fuzz/ssh_client_fuzzer.cpp @@ -40,8 +40,8 @@ static int auth_callback(const char *prompt, } struct ssh_callbacks_struct cb = { - .auth_function = auth_callback, .userdata = NULL, + .auth_function = auth_callback, }; static void select_loop(ssh_session session, ssh_channel channel)