projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: explicitly mark unused parameters (-Wunused-parameter)
[userspace-rcu.git]
/
tests
/
benchmark
/
test_urcu_wfcq.c
diff --git
a/tests/benchmark/test_urcu_wfcq.c
b/tests/benchmark/test_urcu_wfcq.c
index 6b5e9331ab7ab2b01aaaee9a66a0d25fc5441aa0..749715510d8e5b80f7c44a3bf7592e018fe5df08 100644
(file)
--- a/
tests/benchmark/test_urcu_wfcq.c
+++ b/
tests/benchmark/test_urcu_wfcq.c
@@
-308,8
+308,8
@@
static void *thr_dequeuer(void *_count)
return ((void*)2);
}
return ((void*)2);
}
-static void test_end(unsigned long long *nr_dequeues,
- unsigned long long *nr_dequeue_last)
+static void test_end(unsigned long long *nr_dequeues
_l
,
+ unsigned long long *nr_dequeue_last
_l
)
{
struct cds_wfcq_node *node;
int state;
{
struct cds_wfcq_node *node;
int state;
@@
-319,14
+319,14
@@
static void test_end(unsigned long long *nr_dequeues,
&state);
if (node) {
if (state & CDS_WFCQ_STATE_LAST)
&state);
if (node) {
if (state & CDS_WFCQ_STATE_LAST)
- (*nr_dequeue_last)++;
+ (*nr_dequeue_last
_l
)++;
free(node);
free(node);
- (*nr_dequeues)++;
+ (*nr_dequeues
_l
)++;
}
} while (node);
}
}
} while (node);
}
-static void show_usage(
int argc,
char **argv)
+static void show_usage(char **argv)
{
printf("Usage : %s nr_dequeuers nr_enqueuers duration (s) <OPTIONS>\n",
argv[0]);
{
printf("Usage : %s nr_dequeuers nr_enqueuers duration (s) <OPTIONS>\n",
argv[0]);
@@
-360,25
+360,25
@@
int main(int argc, char **argv)
unsigned int i_thr;
if (argc < 4) {
unsigned int i_thr;
if (argc < 4) {
- show_usage(arg
c, arg
v);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[1], "%u", &nr_dequeuers);
if (err != 1) {
return -1;
}
err = sscanf(argv[1], "%u", &nr_dequeuers);
if (err != 1) {
- show_usage(arg
c, arg
v);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[2], "%u", &nr_enqueuers);
if (err != 1) {
return -1;
}
err = sscanf(argv[2], "%u", &nr_enqueuers);
if (err != 1) {
- show_usage(arg
c, arg
v);
+ show_usage(argv);
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
return -1;
}
err = sscanf(argv[3], "%lu", &duration);
if (err != 1) {
- show_usage(arg
c, arg
v);
+ show_usage(argv);
return -1;
}
return -1;
}
@@
-388,7
+388,7
@@
int main(int argc, char **argv)
switch (argv[i][1]) {
case 'a':
if (argc < i + 2) {
switch (argv[i][1]) {
case 'a':
if (argc < i + 2) {
- show_usage(arg
c, arg
v);
+ show_usage(argv);
return -1;
}
a = atoi(argv[++i]);
return -1;
}
a = atoi(argv[++i]);
@@
-398,14
+398,14
@@
int main(int argc, char **argv)
break;
case 'c':
if (argc < i + 2) {
break;
case 'c':
if (argc < i + 2) {
- show_usage(arg
c, arg
v);
+ show_usage(argv);
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
return -1;
}
rduration = atol(argv[++i]);
break;
case 'd':
if (argc < i + 2) {
- show_usage(arg
c, arg
v);
+ show_usage(argv);
return -1;
}
wdelay = atol(argv[++i]);
return -1;
}
wdelay = atol(argv[++i]);
This page took
0.024025 seconds
and
4
git commands to generate.