diff PrivateQueue.c @ 17:1e93e5dbeda1

Build process fix
author Merten Sach <msach@mailbox.tu-berlin.de>
date Wed, 22 Jun 2011 16:55:10 +0200
parents 8fd77f9430f0
children 7c9e00ff1bf4
line diff
     1.1 --- a/PrivateQueue.c	Sun Nov 14 11:14:51 2010 -0800
     1.2 +++ b/PrivateQueue.c	Wed Jun 22 16:55:10 2011 +0200
     1.3 @@ -12,6 +12,7 @@
     1.4  #include <stdlib.h>
     1.5  
     1.6  #include "PrivateQueue.h"
     1.7 +#include "../vmalloc.h"
     1.8  
     1.9  
    1.10  
    1.11 @@ -23,10 +24,9 @@
    1.12  
    1.13  PrivQueueStruc* makeVMSPrivQ()
    1.14   {
    1.15 -   PrivQueueStruc* retQ;
    1.16 -   retQ = (PrivQueueStruc *) VMS__malloc( sizeof( PrivQueueStruc ) );
    1.17 -
    1.18 -   retQ->startOfData = VMS__malloc( 1024 * sizeof(void *) );
    1.19 +   PrivQueueStruc *retQ;
    1.20 +   retQ = VMS__malloc( sizeof( PrivQueueStruc ) );
    1.21 +   retQ->startOfData = (void*)VMS__malloc( 1024 * sizeof(void *) );
    1.22     memset( retQ->startOfData, 0, 1024 );
    1.23  
    1.24     retQ->extractPos = &(retQ->startOfData[0]); //side by side == empty