Skip to content

Commit

Permalink
numademo: fix incompatible pointer types
Browse files Browse the repository at this point in the history
a7c4bc7 introduced a error about incompatible pointer types.

test/move_pages.c:35:39: error: passing argument 2 of
'numa_node_size' from incompatible pointer type
[-Werror=incompatible-pointer-types]
    if (numa_node_size(a, &free_node_sizes) > 0)
			     ^^
Unified variable type and fix it.

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
  • Loading branch information
Hongzhi.Song authored and filbranden committed Sep 23, 2019
1 parent a7c4bc7 commit 6179276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/move_pages.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int *node_to_use;
int get_node_list()
{
int a, got_nodes = 0, max_node, numnodes;
long free_node_sizes;
long long free_node_sizes;

numnodes = numa_num_configured_nodes();
node_to_use = (int *)malloc(numnodes * sizeof(int));
Expand Down

0 comments on commit 6179276

Please sign in to comment.