1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 07:38:06 -05:00

Add a dummy field to ssh_key structure

According to C standard, the behavior is undefined if structure contains
no members.
This commit is contained in:
Pavel Kryukov 2018-06-01 19:09:52 +03:00
parent 108e19e73c
commit e6a60d53be

5
ssh.h
View File

@ -75,7 +75,10 @@ void share_setup_x11_channel(void *csv, void *chanv,
typedef void *Bignum;
#endif
typedef struct ssh_key {} ssh_key;
typedef struct ssh_key {
int dummy;
} ssh_key;
typedef struct ssh_keyalg ssh_keyalg;
struct RSAKey {