summaryrefslogtreecommitdiff
path: root/source4/lib/replace/test/testsuite.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-03-12 11:37:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:49:28 -0500
commit8988113a4261a484962eb104408ada661809ce3a (patch)
tree6b97c0f7893d23e0f9872e2da3e0a09d473da70a /source4/lib/replace/test/testsuite.c
parentd464f0e78b63ee7df52df9171943f6a9723260fc (diff)
downloadsamba-8988113a4261a484962eb104408ada661809ce3a.tar.gz
samba-8988113a4261a484962eb104408ada661809ce3a.tar.bz2
samba-8988113a4261a484962eb104408ada661809ce3a.zip
r21798: unsetenv() returns void on some platforms (BSD)
metze (This used to be commit 9cdb9f1cee9af47e42e11357397b828b86632805)
Diffstat (limited to 'source4/lib/replace/test/testsuite.c')
-rw-r--r--source4/lib/replace/test/testsuite.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source4/lib/replace/test/testsuite.c b/source4/lib/replace/test/testsuite.c
index 44c218270c..5ed6b3e7a5 100644
--- a/source4/lib/replace/test/testsuite.c
+++ b/source4/lib/replace/test/testsuite.c
@@ -200,16 +200,8 @@ static int test_setenv(void)
} while(0)
#define TEST_UNSETENV(key) do { \
- int _ret; \
char *_v; \
- _ret = unsetenv(key); \
- if (_ret != 0) { \
- printf("failure: setenv [\n" \
- "unsetenv(%s) failed\n" \
- "]\n", \
- key); \
- return false; \
- } \
+ unsetenv(key); \
_v=getenv(key); \
if (_v) { \
printf("failure: setenv [\n" \