[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] master 7bf181da: * graph/grobjs.* (grAlloc): Return vo
From: |
Werner Lemberg |
Subject: |
[freetype2-demos] master 7bf181da: * graph/grobjs.* (grAlloc): Return void pointer. |
Date: |
Wed, 7 Sep 2022 23:35:28 -0400 (EDT) |
branch: master
commit 7bf181dacda81f09162ea68c7749656c0e582d73
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>
* graph/grobjs.* (grAlloc): Return void pointer.
---
graph/grobjs.c | 8 ++++----
graph/grobjs.h | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/graph/grobjs.c b/graph/grobjs.c
index 6d2c1576..65a49af9 100644
--- a/graph/grobjs.c
+++ b/graph/grobjs.c
@@ -76,16 +76,16 @@
* size :: size in bytes of the requested block
*
* <Return>
- * the memory block address. 0 in case of error
+ * the memory block address. NULL in case of error
*
********************************************************************/
- unsigned char*
+ void*
grAlloc( size_t size )
{
- unsigned char* p;
+ void* p;
- p = (unsigned char*)malloc(size);
+ p = malloc(size);
if (!p && size > 0)
{
grError = gr_err_memory;
diff --git a/graph/grobjs.h b/graph/grobjs.h
index 8cc61fb8..511e9a60 100644
--- a/graph/grobjs.h
+++ b/graph/grobjs.h
@@ -93,11 +93,11 @@
* size :: size in bytes of the requested block
*
* <Return>
- * the memory block address. 0 in case of error
+ * the memory block address. NULL in case of error
*
********************************************************************/
- extern unsigned char*
+ extern void*
grAlloc( size_t size );
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] master 7bf181da: * graph/grobjs.* (grAlloc): Return void pointer.,
Werner Lemberg <=