1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Remove a couple of double-typedefs.

Experimenting with different compile flags pointed out two instances
of typedefing the same name twice (though benignly, with the same
definition as well). PsocksDataSink was typedefed a couple of lines
above its struct definition and then again _with_ its struct
definition; cliloop_continue_t was typedefed in unix/platform.h and
didn't need defining again in unix/psocks.c.

(cherry picked from commit 3d34007889)
This commit is contained in:
Simon Tatham 2023-08-27 09:36:37 +01:00
parent b875edb6bd
commit dd2b5569ce
2 changed files with 2 additions and 5 deletions

View File

@ -6,10 +6,10 @@ typedef struct PsocksDataSink PsocksDataSink;
/* indices into PsocksDataSink arrays */ /* indices into PsocksDataSink arrays */
typedef enum PsocksDirection { UP, DN } PsocksDirection; typedef enum PsocksDirection { UP, DN } PsocksDirection;
typedef struct PsocksDataSink { struct PsocksDataSink {
void (*free)(PsocksDataSink *); void (*free)(PsocksDataSink *);
BinarySink *s[2]; BinarySink *s[2];
} PsocksDataSink; };
static inline void pds_free(PsocksDataSink *pds) static inline void pds_free(PsocksDataSink *pds)
{ pds->free(pds); } { pds->free(pds); }

View File

@ -160,9 +160,6 @@ static bool psocks_continue(void *ctx, bool found_any_fd,
return still_running; return still_running;
} }
typedef bool (*cliloop_continue_t)(void *ctx, bool found_any_fd,
bool ran_any_callback);
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
psocks_state *ps = psocks_new(&platform); psocks_state *ps = psocks_new(&platform);