From 81e44312b4976d5516f129f36a67fe381bcb6883 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 25 Dec 2011 20:23:53 +0000 Subject: Use strdup explicitly --- String.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'String.c') diff --git a/String.c b/String.c index 81e9eeeb..7d8d285a 100644 --- a/String.c +++ b/String.c @@ -5,7 +5,7 @@ Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ -#define _GNU_SOURCE +#include "config.h" #include "String.h" #include #include @@ -18,10 +18,6 @@ in the source distribution for its full text. #define String_startsWith(s, match) (strstr((s), (match)) == (s)) }*/ -inline char* String_copy(const char* orig) { - return strdup(orig); -} - char* String_cat(const char* s1, const char* s2) { int l1 = strlen(s1); int l2 = strlen(s2); -- cgit v1.2.3