Signed-off-by: Alexander Shishkin <[email protected]>
---
 procps/pmap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/procps/pmap.c b/procps/pmap.c
index cfa94ed..52cf229 100644
--- a/procps/pmap.c
+++ b/procps/pmap.c
@@ -44,7 +44,7 @@ enum {
 
 static void print_smaprec(struct smaprec *currec, void *data)
 {
-       unsigned opt = (unsigned)data;
+       unsigned opt = *(unsigned *)data;
 
        printf("%0" AFMT "lx ", currec->smap_start);
 
@@ -74,7 +74,7 @@ static int procps_get_maps(pid_t pid, unsigned opt)
 
        memset(&total, 0, sizeof(total));
 
-       ret = procps_read_smaps(pid, &total, print_smaprec, (void*)opt);
+       ret = procps_read_smaps(pid, &total, print_smaprec, &opt);
        if (ret)
                return ret;
 
-- 
1.7.2.1.45.gb66c2

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to