diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-22 13:15:15 +0200 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-22 13:15:15 +0200 |
| commit | d3036ef608fa1d0a0763dfb5388ae96dcc8e2d99 (patch) | |
| tree | 0e84aa9d60b80295946b52627b74e7a9536f0d41 | |
| parent | 0bb35e19a73ecbb9694172300a5530dbb8156bb4 (diff) | |
| download | busybox-w32-d3036ef608fa1d0a0763dfb5388ae96dcc8e2d99.tar.gz busybox-w32-d3036ef608fa1d0a0763dfb5388ae96dcc8e2d99.tar.bz2 busybox-w32-d3036ef608fa1d0a0763dfb5388ae96dcc8e2d99.zip | |
pmap: get rid of a warning
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
| -rw-r--r-- | procps/pmap.c | 4 |
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 { | |||
| 44 | 44 | ||
| 45 | static void print_smaprec(struct smaprec *currec, void *data) | 45 | static void print_smaprec(struct smaprec *currec, void *data) |
| 46 | { | 46 | { |
| 47 | unsigned opt = (unsigned)data; | 47 | unsigned opt = (uintptr_t)data; |
| 48 | 48 | ||
| 49 | printf("%0" AFMT "lx ", currec->smap_start); | 49 | printf("%0" AFMT "lx ", currec->smap_start); |
| 50 | 50 | ||
| @@ -74,7 +74,7 @@ static int procps_get_maps(pid_t pid, unsigned opt) | |||
| 74 | 74 | ||
| 75 | memset(&total, 0, sizeof(total)); | 75 | memset(&total, 0, sizeof(total)); |
| 76 | 76 | ||
| 77 | ret = procps_read_smaps(pid, &total, print_smaprec, (void*)opt); | 77 | ret = procps_read_smaps(pid, &total, print_smaprec, (void*)(uintptr_t)opt); |
| 78 | if (ret) | 78 | if (ret) |
| 79 | return ret; | 79 | return ret; |
| 80 | 80 | ||
