svn commit: samba r21798 - in
branches/SAMBA_4_0/source/lib/replace/test: .
metze at samba.org
metze at samba.org
Mon Mar 12 11:37:13 GMT 2007
Author: metze
Date: 2007-03-12 11:37:12 +0000 (Mon, 12 Mar 2007)
New Revision: 21798
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21798
Log:
unsetenv() returns void on some platforms (BSD)
metze
Modified:
branches/SAMBA_4_0/source/lib/replace/test/testsuite.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/test/testsuite.c
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/test/testsuite.c 2007-03-12 11:32:19 UTC (rev 21797)
+++ branches/SAMBA_4_0/source/lib/replace/test/testsuite.c 2007-03-12 11:37:12 UTC (rev 21798)
@@ -200,16 +200,8 @@
} 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" \
More information about the samba-cvs
mailing list