DORMANTno replies

[PATCH ethtool 2/2] Fix return type of test_free() prorotype

From: Ben Hutchings <hidden>
Date: 2015-10-09 03:04:03
Subsystem: the rest · Maintainer: Linus Torvalds

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

Signed-off-by: Ben Hutchings <redacted>
---
I've applied this post-4.2.

Ben.

 internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/internal.h b/internal.h
index 156770c..b5ef646 100644
--- a/internal.h
+++ b/internal.h
@@ -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);
-- 
Ben Hutchings
If the facts do not conform to your theory, they must be disposed of.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help