Skip to contentSkip to conversation

Fix return type of test_free() prorotype

PATCH New Ben Hutchings 1 participant 1 message Oct 9, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Fix return type of test_free() prorotype

The return type should be void, consistent with the definition and with the standard free() function.

---
I've applied this post-4.2.

Ben.

 internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
internal.h +1 -1
index 156770c..b5ef646 100644
@@ -148,7 +148,7 @@ void *test_calloc(size_t nmemb, size_t size);
 char *test_strdup(const char *s);
 #undef strdup
 #define strdup(s) test_strdup(s)
-void *test_free(void *ptr);
+void test_free(void *ptr);
 #undef free
 #define free(ptr) test_free(ptr)
 void *test_realloc(void *ptr, size_t size);
Signature · 2 lines
Ben Hutchings
If the facts do not conform to your theory, they must be disposed of.