From 72bce217ef474f056d8f6675667ec78d1772ff37 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 20 Oct 1998 06:45:18 +0000 Subject: removed setenv(), replaced with smbw_setenv() --- source/lib/replace.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'source/lib/replace.c') diff --git a/source/lib/replace.c b/source/lib/replace.c index a354458a686..56f6b9c6379 100644 --- a/source/lib/replace.c +++ b/source/lib/replace.c @@ -293,20 +293,3 @@ char *rep_inet_ntoa(struct in_addr ip) } #endif - -#ifndef HAVE_SETENV -/***************************************************************** -set an env variable - some systems don't have this -*****************************************************************/ - int setenv(const char *name, const char *value, int overwrite) -{ - pstring s; - - if (!overwrite && getenv(name)) return 0; - - slprintf(s,sizeof(s)-1,"%s=%s", name, value); - - return putenv(s); -} - -#endif -- cgit