diff options
author | David Johnson <davijoh3@cisco.com> | 2018-12-14 14:53:41 -0500 |
---|---|---|
committer | David Johnson <davijoh3@cisco.com> | 2019-01-02 10:55:55 -0500 |
commit | d9818dd68c162079f3ddb5443a78d0d91d55d0fe (patch) | |
tree | 71a597e8fb2c9c7ebd70870ae78091872591e216 /src/plugins/unittest | |
parent | d6897c1597c4f0904d5956f7d794e3f001d52f72 (diff) |
Fixes for buliding for 32bit targets:
* u32/u64/uword mismatches
* pointer-to-int fixes
* printf formatting issues
* issues with incorrect "ULL" and related suffixes
* structure alignment and padding issues
Change-Id: I70b989007758755fe8211c074f651150680f60b4
Signed-off-by: David Johnson <davijoh3@cisco.com>
Diffstat (limited to 'src/plugins/unittest')
-rw-r--r-- | src/plugins/unittest/bihash_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/unittest/bihash_test.c b/src/plugins/unittest/bihash_test.c index 3ce41cf494d..d418ced4e6e 100644 --- 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; - u32 my_thread_index = (u32) (u64) arg; + u32 my_thread_index = (uword) arg; 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, - (void *) (u64) i); + (void *) (uword) i); if (rv) { clib_unix_warning ("pthread_create returned %d", rv); |