From fe791078b71cc103de10fc7c82302ea8ee19e447 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 23 Aug 2006 23:21:29 +0000 Subject: r17763: moved setenv to ldb/replace/ (This used to be commit ed2dbc4dfe4556831c809dab24e3833cd2018138) --- source4/lib/replace/replace.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'source4/lib/replace/replace.c') diff --git a/source4/lib/replace/replace.c b/source4/lib/replace/replace.c index b74cd7f95a..b8f4bc1c3c 100644 --- a/source4/lib/replace/replace.c +++ b/source4/lib/replace/replace.c @@ -368,25 +368,6 @@ duplicate a string #endif /* HAVE_VSYSLOG */ -#ifndef HAVE_SETENV - int setenv(const char *name, const char *value, int overwrite) -{ - char *p = NULL; - int ret = -1; - - asprintf(&p, "%s=%s", name, value); - - if (overwrite || getenv(name)) { - if (p) ret = putenv(p); - } else { - ret = 0; - } - - return ret; -} -#endif - - #ifndef HAVE_STRNDUP /** Some platforms don't have strndup. -- cgit