aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2020-04-27 18:40:21 +0200
committerAndreas Schneider <asn@cryptomilk.org>2020-05-05 14:23:06 +0200
commit5411e0821fdd460820460e9a35fdffb554dc9e24 (patch)
tree6045348010deb562635e7a8a4c85dc4d04e688fa /tests
parent44de453b227115c0d60926302901ae0869ef5d1e (diff)
downloadlibssh-5411e0821fdd460820460e9a35fdffb554dc9e24.tar.gz
libssh-5411e0821fdd460820460e9a35fdffb554dc9e24.tar.xz
libssh-5411e0821fdd460820460e9a35fdffb554dc9e24.zip
fuzz: Correctly sort members initialization to prevent GCC warnings
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 <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/fuzz/ssh_client_fuzzer.cpp2
1 files changed, 1 insertions, 1 deletions
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)