aboutsummaryrefslogtreecommitdiff
path: root/src/tool_main.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-02-06 04:51:55 +0100
committerYang Tse <yangsita@gmail.com>2013-02-06 04:51:55 +0100
commit453e821ad74a042da0373ebb4716708529834071 (patch)
tree116ff416b00cc5afe00cdd039b37c46444e15470 /src/tool_main.c
parente0c491026faa40d94d330f8809b0fbd70168a32f (diff)
vms_show: post VMS patch cleanup - II
- remove multiple declarations of vms_show and add comments
Diffstat (limited to 'src/tool_main.c')
-rw-r--r--src/tool_main.c10
1 files changed, 10 insertions, 0 deletions
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