]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/alloc.[ch]: xmalloc(): Remove unused function
authorAlejandro Colomar <alx@kernel.org>
Thu, 27 Jun 2024 13:58:18 +0000 (15:58 +0200)
committerSerge Hallyn <serge@hallyn.com>
Tue, 2 Jul 2024 02:40:11 +0000 (21:40 -0500)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/alloc.c
lib/alloc.h

index a9cbcaf0fdef9b0d98dc1255c976044167734afd..918f9507eddfe06b2f9fc3a0cb983cf3f12e58c4 100644 (file)
@@ -27,7 +27,6 @@
 #include "shadowlog.h"
 
 
-extern inline void *xmalloc(size_t size);
 extern inline void *xmallocarray(size_t nmemb, size_t size);
 extern inline void *mallocarray(size_t nmemb, size_t size);
 extern inline void *reallocarrayf(void *p, size_t nmemb, size_t size);
index cf2e4b2e1f11b9091c2290c2a1245da10d341e4f..37afe5051d7cbf761c7204200856cd531a3efcad 100644 (file)
@@ -38,8 +38,6 @@
 )
 
 
-ATTR_MALLOC(free)
-inline void *xmalloc(size_t size);
 ATTR_MALLOC(free)
 inline void *xmallocarray(size_t nmemb, size_t size);
 ATTR_MALLOC(free)
@@ -53,13 +51,6 @@ ATTR_MALLOC(free)
 void *xreallocarray(void *p, size_t nmemb, size_t size);
 
 
-inline void *
-xmalloc(size_t size)
-{
-       return xmallocarray(1, size);
-}
-
-
 inline void *
 xmallocarray(size_t nmemb, size_t size)
 {