add help text
[oweals/busybox.git] / procps / pmap.c
index cfa94ed82408e1b5a5167a0c82c464b41b3c48d2..7f7f391b98a2e5a38726069fc6a20d6c3e77431e 100644 (file)
@@ -8,7 +8,7 @@
  * for details.
  */
 
-//applet:IF_PMAP(APPLET(pmap, _BB_DIR_USR_BIN, _BB_SUID_DROP))
+//applet:IF_PMAP(APPLET(pmap, BB_DIR_USR_BIN, BB_SUID_DROP))
 //kbuild:lib-$(CONFIG_PMAP)     += pmap.o
 
 //config:config PMAP
@@ -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;