diff --git a/pscp.c b/pscp.c index 5b010ff1..9292052a 100644 --- a/pscp.c +++ b/pscp.c @@ -2235,11 +2235,7 @@ int psftp_main(int argc, char *argv[]) default_protocol = PROT_TELNET; - flags = 0 -#ifdef FLAG_SYNCAGENT - | FLAG_SYNCAGENT -#endif - ; + flags = 0; cmdline_tooltype = TOOLTYPE_FILETRANSFER; sk_init(); diff --git a/psftp.c b/psftp.c index c7e2414b..cf9e88e3 100644 --- a/psftp.c +++ b/psftp.c @@ -2769,11 +2769,7 @@ int psftp_main(int argc, char *argv[]) bool sanitise_stderr = true; char *batchfile = NULL; - flags = 0 -#ifdef FLAG_SYNCAGENT - | FLAG_SYNCAGENT -#endif - ; + flags = 0; cmdline_tooltype = TOOLTYPE_FILETRANSFER; sk_init(); diff --git a/windows/winpgnt.c b/windows/winpgnt.c index 67f53c00..089ba7ad 100644 --- a/windows/winpgnt.c +++ b/windows/winpgnt.c @@ -1183,7 +1183,7 @@ void cleanup_exit(int code) exit(code); } -int flags = FLAG_SYNCAGENT; +int flags = 0; struct winpgnt_client { PageantListenerClient plc; diff --git a/windows/winstuff.h b/windows/winstuff.h index d6cc1b68..7183a86e 100644 --- a/windows/winstuff.h +++ b/windows/winstuff.h @@ -662,13 +662,9 @@ char *agent_named_pipe_name(void); * winpgntc.c needs to schedule callbacks for asynchronous agent * requests. This has to be done differently in GUI and console, so * there's an exported function used for the purpose. - * - * Also, we supply FLAG_SYNCAGENT to force agent requests to be - * synchronous in pscp and psftp. */ void agent_schedule_callback(void (*callback)(void *, void *, int), void *callback_ctx, void *data, int len); -#define FLAG_SYNCAGENT 0x1000 /* * Exports from winser.c.