dect
/
libnl
Archived
13
0
Fork 0

[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>
This commit is contained in:
Patrick McHardy 2007-12-13 14:33:35 +01:00 committed by Thomas Graf
parent 936c9844b0
commit 6a0d290a70
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}