mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +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.
This commit is contained in:
parent
da550c3158
commit
3d34007889
4
psocks.h
4
psocks.h
@ -6,10 +6,10 @@ typedef struct PsocksDataSink PsocksDataSink;
|
||||
/* indices into PsocksDataSink arrays */
|
||||
typedef enum PsocksDirection { UP, DN } PsocksDirection;
|
||||
|
||||
typedef struct PsocksDataSink {
|
||||
struct PsocksDataSink {
|
||||
void (*free)(PsocksDataSink *);
|
||||
BinarySink *s[2];
|
||||
} PsocksDataSink;
|
||||
};
|
||||
static inline void pds_free(PsocksDataSink *pds)
|
||||
{ pds->free(pds); }
|
||||
|
||||
|
@ -160,9 +160,6 @@ static bool psocks_continue(void *ctx, bool found_any_fd,
|
||||
return still_running;
|
||||
}
|
||||
|
||||
typedef bool (*cliloop_continue_t)(void *ctx, bool found_any_fd,
|
||||
bool ran_any_callback);
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
psocks_state *ps = psocks_new(&platform);
|
||||
|
Loading…
Reference in New Issue
Block a user