From 453e821ad74a042da0373ebb4716708529834071 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 6 Feb 2013 04:51:55 +0100 Subject: vms_show: post VMS patch cleanup - II - remove multiple declarations of vms_show and add comments --- src/tool_main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/tool_main.c') diff --git a/src/tool_main.c b/src/tool_main.c index 00a241032..95e9cc779 100644 --- a/src/tool_main.c +++ b/src/tool_main.c @@ -45,6 +45,16 @@ */ #include "memdebug.h" /* keep this as LAST include */ +#ifdef __VMS +/* + * vms_show is a global variable, used in main() as parameter for + * function vms_special_exit() to allow proper curl tool exiting. + * Its value may be set in other tool_*.c source files thanks to + * forward declaration present in tool_vms.h + */ +static int vms_show = 0; +#endif + /* * Ensure that file descriptors 0, 1 and 2 (stdin, stdout, stderr) are * open before starting to run. Otherwise, the first three network -- cgit v1.2.3