diff --git a/psocks.h b/psocks.h index d1120a36..8ba3b2f2 100644 --- a/psocks.h +++ b/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); } diff --git a/unix/psocks.c b/unix/psocks.c index 748790b8..6b30dc16 100644 --- a/unix/psocks.c +++ b/unix/psocks.c @@ -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);