[Git][ghc/ghc][master] hp2ps/Utilities.c: add extern parameter types for malloc and realloc for C23

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Sat Jan 25 04:13:27 UTC 2025



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
70f7741a by Jens Petersen at 2025-01-24T23:12:58-05:00
hp2ps/Utilities.c: add extern parameter types for malloc and realloc for C23

use portable C types!

- - - - -


1 changed file:

- utils/hp2ps/Utilities.c


Changes:

=====================================
utils/hp2ps/Utilities.c
=====================================
@@ -3,7 +3,7 @@
 #include <string.h>
 #include "Error.h"
 
-extern void* malloc(long unsigned int);
+extern void* malloc(size_t);
 
 char*
 Basename(char *name)
@@ -89,7 +89,7 @@ void *
 xrealloc(void *p, size_t n)
 {
     void *r;
-    extern void *realloc(void *, long unsigned int);
+    extern void *realloc(void *, size_t);
 
     r = realloc(p, n);
     if (!r) {



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/70f7741acd9d50a6cc07553aeaae600afe4a72b8

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/70f7741acd9d50a6cc07553aeaae600afe4a72b8
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250124/58894b67/attachment-0001.html>


More information about the ghc-commits mailing list