Commits

Pierre Joye committed e8bbc92

fix build, const is just as good here too

  • Participants
  • Parent commits e1a8f0c

Comments (0)

Files changed (1)

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