Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixes for buliding for 32bit targets:
[vpp.git]
/
src
/
plugins
/
unittest
/
bihash_test.c
diff --git
a/src/plugins/unittest/bihash_test.c
b/src/plugins/unittest/bihash_test.c
index
3ce41cf
..
d418ced
100644
(file)
--- a/
src/plugins/unittest/bihash_test.c
+++ b/
src/plugins/unittest/bihash_test.c
@@
-99,7
+99,7
@@
test_bihash_thread_fn (void *arg)
BVT (clib_bihash_kv) kv;
bihash_test_main_t *tm = &bihash_test_main;
int i, j;
BVT (clib_bihash_kv) kv;
bihash_test_main_t *tm = &bihash_test_main;
int i, j;
- u32 my_thread_index = (u
32) (u64
) arg;
+ u32 my_thread_index = (u
word
) arg;
while (tm->thread_barrier)
;
while (tm->thread_barrier)
;
@@
-150,7
+150,7
@@
test_bihash_threads (bihash_test_main_t * tm)
for (i = 0; i < tm->nthreads; i++)
{
rv = pthread_create (&handle, NULL, test_bihash_thread_fn,
for (i = 0; i < tm->nthreads; i++)
{
rv = pthread_create (&handle, NULL, test_bihash_thread_fn,
- (void *) (u
64
) i);
+ (void *) (u
word
) i);
if (rv)
{
clib_unix_warning ("pthread_create returned %d", rv);
if (rv)
{
clib_unix_warning ("pthread_create returned %d", rv);