From a3113301bea0fd455c1a0ef90afa113307403728 Mon Sep 17 00:00:00 2001 From: Daniel Danzberger Date: Wed, 22 Apr 2020 10:07:30 +0200 Subject: [PATCH] Fix compile error on 64 bit systems Fixes casting pointers of invallid size to int. Signed-off-by: Daniel Danzberger --- libbbf_api/dmbbf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbbf_api/dmbbf.c b/libbbf_api/dmbbf.c index 66429184..43918de4 100644 --- a/libbbf_api/dmbbf.c +++ b/libbbf_api/dmbbf.c @@ -600,7 +600,7 @@ char *update_instance_alias(int action, char **last_inst, void *argv[]) char *update_instance_without_section(int action, char **last_inst, void *argv[]) { char *instance, buf[64] = {0}; - int instnbr = (int) argv[0]; + int instnbr = (int)(long)argv[0]; if (action == INSTANCE_MODE_ALIAS) { snprintf(buf, sizeof(buf), "[cpe-%d]", instnbr);