summaryrefslogtreecommitdiffhomepage
path: root/procps
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-10-22 13:15:15 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-10-22 13:15:15 +0200
commitd3036ef608fa1d0a0763dfb5388ae96dcc8e2d99 (patch)
tree0e84aa9d60b80295946b52627b74e7a9536f0d41 /procps
parent0bb35e19a73ecbb9694172300a5530dbb8156bb4 (diff)
pmap: get rid of a warning
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'procps')
-rw-r--r--procps/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/procps/pmap.c b/procps/pmap.c
index cfa94ed82..bb5f9e7c2 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 = (uintptr_t)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, (void*)(uintptr_t)opt);
if (ret)
return ret;