* 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
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);
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;