summaryrefslogtreecommitdiff
path: root/source4/torture/nbench
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-28 13:40:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:55 -0500
commitba6d5fcb97b9831dddf7dfe09fb02fbb23d864b4 (patch)
treed0c75ce4b6f66580bbabdcc82e4d930bd05d9a0a /source4/torture/nbench
parenta6ae640313a47ac2950c0948e4385fa934a5ef09 (diff)
downloadsamba-ba6d5fcb97b9831dddf7dfe09fb02fbb23d864b4.tar.gz
samba-ba6d5fcb97b9831dddf7dfe09fb02fbb23d864b4.tar.bz2
samba-ba6d5fcb97b9831dddf7dfe09fb02fbb23d864b4.zip
r3324: made the smbtorture code completely warning free
(This used to be commit 7067bb9b52223cafa28470f264f0b60646a07a01)
Diffstat (limited to 'source4/torture/nbench')
-rw-r--r--source4/torture/nbench/nbench.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/nbench/nbench.c b/source4/torture/nbench/nbench.c
index a649b5fa15..0b4bf4bbf1 100644
--- a/source4/torture/nbench/nbench.c
+++ b/source4/torture/nbench/nbench.c
@@ -162,7 +162,7 @@ done:
/* run a test that simulates an approximate netbench client load */
-BOOL torture_nbench(int dummy)
+BOOL torture_nbench(void)
{
BOOL correct = True;
extern int torture_nprocs;
@@ -193,7 +193,7 @@ BOOL torture_nbench(int dummy)
printf("Running for %d seconds with load '%s' and warmup %d secs\n",
timelimit, loadfile, warmup);
- signal(SIGALRM, SIGNAL_CAST nb_alarm);
+ signal(SIGALRM, nb_alarm);
alarm(1);
torture_create_procs(run_netbench, &correct);
alarm(0);