tool_main.c: remove redundant vms_show storage-class specifier
authorYang Tse <yangsita@gmail.com>
Wed, 13 Mar 2013 22:35:24 +0000 (23:35 +0100)
committerYang Tse <yangsita@gmail.com>
Wed, 13 Mar 2013 22:35:24 +0000 (23:35 +0100)
vms_show 'extern' storage-class specifier removed from tool_main.c due to...

- Advice from Tor Arntsen: http://curl.haxx.se/mail/lib-2013-03/0164.html

- HP OpenVMS docs stating that 'Extern is the default storage class for
  variables declared outside a function.'
  http://h71000.www7.hp.com/commercial/c/docs/dec_c_help_5.html
  (Storage_Classes section)

src/tool_main.c

index 4b8817a..5e1010a 100644 (file)
@@ -52,7 +52,7 @@
  * Its value may be set in other tool_*.c source files thanks to
  * forward declaration present in tool_vms.h
  */
-extern int vms_show = 0;
+int vms_show = 0;
 #endif
 
 /*