Remove duplicate typedef for mainchan.

In some compiler modes - notably the one that gtk-config selects when
GTK PuTTY is built for GTK 1 - it's an error to typedef the same thing
twice. 'mainchan' is defined in defs.h, so it doesn't need defining
again where the structure contents are specified.
This commit is contained in:
Simon Tatham 2018-11-01 18:17:41 +00:00
Родитель 1d459fc725
Коммит 3a2afbc9c0
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -54,7 +54,7 @@ typedef enum MainChanType {
MAINCHAN_SESSION, MAINCHAN_DIRECT_TCPIP
} MainChanType;
typedef struct mainchan {
struct mainchan {
SshChannel *sc;
Conf *conf;
PacketProtocolLayer *ppl;
@ -70,7 +70,7 @@ typedef struct mainchan {
int term_width, term_height;
Channel chan;
} mainchan;
};
mainchan *mainchan_new(
PacketProtocolLayer *ppl, ConnectionLayer *cl, Conf *conf,