patch for opkg_download.c compile abort
[oweals/opkg-lede.git] / libbb / xfuncs.c
index ee90e60a6712ad86f9f109b0436c3446f3c07b74..c12b28234a1a58360a9781d2de2965c5db15dbc4 100644 (file)
@@ -26,7 +26,6 @@
 #include "libbb.h"
 
 
-#ifndef DMALLOC
 extern void *xmalloc(size_t size)
 {
        void *ptr = malloc(size);
@@ -64,7 +63,6 @@ extern char * xstrdup (const char *s) {
 
        return t;
 }
-#endif
 
 extern char * xstrndup (const char *s, int n) {
        char *t;
@@ -85,13 +83,6 @@ FILE *xfopen(const char *path, const char *mode)
        return fp;
 }
 
-/* Stupid gcc always includes its own builtin strlen()... */
-#undef strlen
-size_t xstrlen(const char *string)
-{
-       return(strlen(string));
-}
-
 /* END CODE */
 /*
 Local Variables: