Commits

Pierre Joye  committed 84d2371

fix #70

  • Participants
  • Parent commits 87eb546

Comments (0)

Files changed (2)

File src/gdhelpers.c

 	return result;
 }
 
-const  void * gdCalloc (size_t nmemb, size_t size)
+void * gdCalloc (size_t nmemb, size_t size)
 {
 	return calloc (nmemb, size);
 }
 
-const  void *
+void *
 gdMalloc (size_t size)
 {
 	return malloc (size);
 }
 
-const  void *
+void *
 gdRealloc (void *ptr, size_t size)
 {
 	return realloc (ptr, size);
 }
 
-const  void *
+void *
 gdReallocEx (void *ptr, size_t size)
 {
 	void *newPtr = gdRealloc (ptr, size);

File src/gdhelpers.h

 		in gd.h, where callers can utilize it to correctly
 		free memory allocated by these functions with the
 		right version of free(). */
-	const void *gdCalloc (size_t nmemb, size_t size);
-	const void *gdMalloc (size_t size);
-	const void *gdRealloc (void *ptr, size_t size);
+	void *gdCalloc (size_t nmemb, size_t size);
+	void *gdMalloc (size_t size);
+	void *gdRealloc (void *ptr, size_t size);
 	/* The extended version of gdReallocEx will free *ptr if the
 	 * realloc fails */
-	const void *gdReallocEx (void *ptr, size_t size);
+	void *gdReallocEx (void *ptr, size_t size);
 
 	/* Returns nonzero if multiplying the two quantities will
 		result in integer overflow. Also returns nonzero if