]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MICROCERN/fchtak.c
CMake: removing qpythia from the depedencies
[u/mrichter/AliRoot.git] / MICROCERN / fchtak.c
index 67c4d163f4107bf068d6372bd237ef93535adee5..cf8221ea5cf5b66c8fcada4cb49fe382aac17b4b 100644 (file)
@@ -10,6 +10,7 @@
       return the memory pointer
 */
 #include <stdio.h>
+#include <stdlib.h>
 #include "kerngen/fortchar.h"
 char *fchtak(ftext,lgtext)
 #if defined(CERNLIB_QMCRY)
@@ -20,14 +21,14 @@ char *fchtak(ftext,lgtext)
 #endif
       int  lgtext;
 {
-      char *malloc();
+  /*      char *malloc(); */
       char *ptalc, *ptuse;
       char *utext;
       int  nalc;
       int  ntx, jcol;
 
       nalc  = lgtext + 8;
-      ptalc = malloc (nalc);
+      ptalc = (char*)malloc (nalc);
       if (ptalc == NULL)     goto exit;
 #if defined(CERNLIB_QMCRY)
       utext = _fcdtocp(ftext);