diff options
author | Patrick McHardy <kaber@trash.net> | 2007-12-13 13:33:35 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@deb.localdomain> | 2007-12-13 13:33:35 (GMT) |
commit | 6a0d290a704f0d4201acd9a553a01e602e9ece52 (patch) | |
tree | d54eb15cb25c1cc5b0598daaf1e2979963229430 /src/nl-tctree-dump.c | |
parent | 936c9844b0ff4aab06301f18fe31e08b1818d0a2 (diff) | |
download | libnl-6a0d290a704f0d4201acd9a553a01e602e9ece52.zip libnl-6a0d290a704f0d4201acd9a553a01e602e9ece52.tar.gz libnl-6a0d290a704f0d4201acd9a553a01e602e9ece52.tar.bz2 |
[LIBNL]: Fix pointer conversion warnings on 64 bit
nl-tctree-dump.c: In function 'print_class':
nl-tctree-dump.c:31: warning: cast from pointer to integer of different size
nl-tctree-dump.c:44: warning: cast from pointer to integer of different size
nl-tctree-dump.c: In function 'print_qdisc':
nl-tctree-dump.c:55: warning: cast from pointer to integer of different size
nl-tctree-dump.c:64: warning: cast from pointer to integer of different size
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/nl-tctree-dump.c')
-rw-r--r-- | src/nl-tctree-dump.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nl-tctree-dump.c b/src/nl-tctree-dump.c index 193686f..6f81fca 100644 --- a/src/nl-tctree-dump.c +++ b/src/nl-tctree-dump.c @@ -28,7 +28,7 @@ static void print_class(struct nl_object *obj, void *arg) struct nl_cache *cls_cache; uint32_t parent = rtnl_class_get_handle(class); - dump_params.dp_prefix = (int) arg; + dump_params.dp_prefix = (int)(uint64_t) arg; nl_object_dump(obj, &dump_params); leaf = rtnl_class_leaf_qdisc(class, qdisc_cache); @@ -41,7 +41,7 @@ static void print_class(struct nl_object *obj, void *arg) if (!cls_cache) return; - dump_params.dp_prefix = (int) arg + 2; + dump_params.dp_prefix = (int)(uint64_t) arg + 2; nl_cache_dump(cls_cache, &dump_params); nl_cache_free(cls_cache); } @@ -52,7 +52,7 @@ static void print_qdisc(struct nl_object *obj, void *arg) struct nl_cache *cls_cache; uint32_t parent = rtnl_qdisc_get_handle(qdisc); - dump_params.dp_prefix = (int) arg; + dump_params.dp_prefix = (int)(uint64_t) arg; nl_object_dump(obj, &dump_params); rtnl_qdisc_foreach_child(qdisc, class_cache, &print_class, arg + 2); @@ -61,7 +61,7 @@ static void print_qdisc(struct nl_object *obj, void *arg) if (!cls_cache) return; - dump_params.dp_prefix = (int) arg + 2; + dump_params.dp_prefix = (int)(uint64_t) arg + 2; nl_cache_dump(cls_cache, &dump_params); nl_cache_free(cls_cache); } |