From cb39ec159c448ee5ffd5f16c4c65c9478b211756 Mon Sep 17 00:00:00 2001 From: Abdullah Sowayan Date: Tue, 17 Jul 2007 04:06:30 +0000 Subject: Tue Jul 17 04:03:24 UTC 2007 Abdullah Sowayan --- ACE/performance-tests/Synch-Benchmarks/context.c | 4 ++-- ACE/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp | 2 +- ACE/performance-tests/TTCP/C/new-ttcp.cpp | 2 +- ACE/performance-tests/UDP/udp_test.cpp | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'ACE/performance-tests') diff --git a/ACE/performance-tests/Synch-Benchmarks/context.c b/ACE/performance-tests/Synch-Benchmarks/context.c index a5a6e577b12..a2ce1c580e9 100644 --- a/ACE/performance-tests/Synch-Benchmarks/context.c +++ b/ACE/performance-tests/Synch-Benchmarks/context.c @@ -47,9 +47,9 @@ main (int argc, char *argv[]) ncorr = atoi (argv[5]); - if (thr_create (NULL, 0, work, 0, t0arg, &tid0) != 0) + if (thr_create (0, 0, work, 0, t0arg, &tid0) != 0) perror ("couldn't create thread 0"); - if (thr_create (NULL, 0, work, (void *) 1, t1arg, &tid1) != 0) + if (thr_create (0, 0, work, (void *) 1, t1arg, &tid1) != 0) perror ("couldn't create thread 1"); orig_ncorr = thr_getconcurrency (); diff --git a/ACE/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp b/ACE/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp index 975048a4a7e..c195836c890 100644 --- a/ACE/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp +++ b/ACE/performance-tests/TTCP/ACE-C++/wrapper-new-ttcp.cpp @@ -676,7 +676,7 @@ prep_timer () fprintf(stdout, "beginning sys time = %d sec and %d usec\n", ru0.ru_stime.tv_sec, ru0.ru_stime.tv_usec); /* Init REAL Timer */ - if (setitimer (ITIMER_REAL, &itime0, NULL)) + if (setitimer (ITIMER_REAL, &itime0, 0)) { perror ("Setting 'itimer' REAL failed"); return; diff --git a/ACE/performance-tests/TTCP/C/new-ttcp.cpp b/ACE/performance-tests/TTCP/C/new-ttcp.cpp index 3cf8e1045eb..d355f0b6d56 100644 --- a/ACE/performance-tests/TTCP/C/new-ttcp.cpp +++ b/ACE/performance-tests/TTCP/C/new-ttcp.cpp @@ -700,7 +700,7 @@ prep_timer () getrusage (RUSAGE_SELF, &ru0); /* Init REAL Timer */ - if (setitimer (ITIMER_REAL, &itime0, NULL)) + if (setitimer (ITIMER_REAL, &itime0, 0)) { perror ("Setting 'itimer' REAL failed"); return; diff --git a/ACE/performance-tests/UDP/udp_test.cpp b/ACE/performance-tests/UDP/udp_test.cpp index 5c613fcef61..1e59e06b30a 100644 --- a/ACE/performance-tests/UDP/udp_test.cpp +++ b/ACE/performance-tests/UDP/udp_test.cpp @@ -346,20 +346,20 @@ Client::run (void) distfp = ACE_OS::fopen(distfile, ACE_TEXT("w")); - if (distfp == NULL) + if (distfp == 0) { ACE_DEBUG ((LM_DEBUG, "Unable to open dist file!\n\n")); logfile = 0; } - if (logfile && (sampfp = ACE_OS::fopen (sampfile, ACE_TEXT("w"))) == NULL) + if (logfile && (sampfp = ACE_OS::fopen (sampfile, ACE_TEXT("w"))) == 0) { ACE_OS::fclose (distfp); ACE_DEBUG ((LM_DEBUG, "Unable to open sample file!\n\n")); logfile = 0; } - if (logfile && (sumfp = ACE_OS::fopen (sumfile, ACE_TEXT("w"))) == NULL) + if (logfile && (sumfp = ACE_OS::fopen (sumfile, ACE_TEXT("w"))) == 0) { ACE_OS::fclose (distfp); ACE_OS::fclose (sampfp); -- cgit v1.2.1