1. libgd
  2. Untitled project
  3. gd-libgd

Commits

Pierre Joye  committed e8bbc92

fix build, const is just as good here too

  • Participants
  • Parent commits e1a8f0c
  • Branches master

Comments (0)

Files changed (1)

File src/gdhelpers.h

View file
  • Ignore whitespace
 		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