noice

small file browser
git clone git://git.2f30.org/noice
Log | Files | Refs | README | LICENSE

commit a4c4570b0b249bebe74951f3ca8887ea6c644c12
parent b1935acd165dfe91f57ec9e814588cc33ec0e31f
Author: sin <sin@2f30.org>
Date:   Fri, 23 Aug 2019 10:57:54 +0100

Remove unused helpers

Diffstat:
Mnoice.c | 22----------------------
1 file changed, 0 insertions(+), 22 deletions(-)

diff --git a/noice.c b/noice.c @@ -95,17 +95,6 @@ void printwarn(void); void printerr(int, char *); void * -xmalloc(size_t size) -{ - void *p; - - p = malloc(size); - if (p == NULL) - printerr(1, "malloc"); - return p; -} - -void * xrealloc(void *p, size_t size) { p = realloc(p, size); @@ -114,17 +103,6 @@ xrealloc(void *p, size_t size) return p; } -char * -xstrdup(const char *s) -{ - char *p; - - p = strdup(s); - if (p == NULL) - printerr(1, "strdup"); - return p; -} - /* Some implementations of dirname(3) may modify `path' and some * return a pointer inside `path'. */ char *