From b2bfb5ebc0a07a083e2368d7063f49ffb6fc486c Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 31 Mar 2001 22:23:49 -0500 Subject: [svn-r3744] Purpose: Code cleanup Description: Code had ifdef's instead of using standard macro wrappers for getpid() call. Solution: Took out ifdef's and changed to use standard H5getpid() macro. Platforms tested: FreeBSD 4.3 (hawkwind) --- test/h5test.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/h5test.c b/test/h5test.c index ac834bf..c077c6a 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -215,11 +215,7 @@ h5_reset(void) * Cause the library to emit some diagnostics early so they don't * interfere with other formatted output. */ -#ifdef WIN32 - sprintf(filename, "/tmp/h5emit-%05d.h5",_getpid()); -#else - sprintf(filename, "/tmp/h5emit-%05d.h5", getpid()); -#endif + sprintf(filename, "/tmp/h5emit-%05d.h5", HDgetpid()); H5E_BEGIN_TRY { hid_t file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); -- cgit v0.12