1
1

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>
Этот коммит содержится в:
Jakub Jelen 2020-04-27 18:40:21 +02:00 коммит произвёл Andreas Schneider
родитель 44de453b22
Коммит 5411e0821f

Просмотреть файл

@ -40,8 +40,8 @@ static int auth_callback(const char *prompt,
} }
struct ssh_callbacks_struct cb = { struct ssh_callbacks_struct cb = {
.auth_function = auth_callback,
.userdata = NULL, .userdata = NULL,
.auth_function = auth_callback,
}; };
static void select_loop(ssh_session session, ssh_channel channel) static void select_loop(ssh_session session, ssh_channel channel)