Fix a cast in vms/vms.c.
authorCraig A. Berry <craigberry@mac.com>
Fri, 25 May 2012 02:47:45 +0000 (21:47 -0500)
committerCraig A. Berry <craigberry@mac.com>
Fri, 25 May 2012 02:49:45 +0000 (21:49 -0500)
This is a follow-up to c11536f52.  Oddly. C++ was ok without the
"struct" but C wasn't.

vms/vms.c

index 1d67db0..eda8c30 100644 (file)
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -10425,7 +10425,7 @@ setup_cmddsc(pTHX_ const char *incmd, int check_img, int *suggest_quote,
   int cmdlen;
   register int isdcl;
 
-  vmscmd = (dsc$descriptor_s *)PerlMem_malloc(sizeof(struct dsc$descriptor_s));
+  vmscmd = (struct dsc$descriptor_s *)PerlMem_malloc(sizeof(struct dsc$descriptor_s));
   if (vmscmd == NULL) _ckvmssts_noperl(SS$_INSFMEM);
 
   /* vmsspec is a DCL command buffer, not just a filename */