diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2011-01-04 19:52:10 +0700 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2011-01-04 19:52:10 +0700 |
commit | 8cef222175855ae08f3768a5586b00650240403d (patch) | |
tree | 224364dc08e460fea425df95fc45e1cbc9bbbd96 /procps | |
parent | 9fab97cbb70312170739e29a5fbbbe072f07bb78 (diff) | |
parent | cbfeaac7afe31323d46c52da3b98a949232d708e (diff) | |
download | busybox-w32-8cef222175855ae08f3768a5586b00650240403d.tar.gz busybox-w32-8cef222175855ae08f3768a5586b00650240403d.tar.bz2 busybox-w32-8cef222175855ae08f3768a5586b00650240403d.zip |
Merge commit '6722737ece4b8db3e30b53aef8f981f53db1621e^'
Diffstat (limited to 'procps')
-rw-r--r-- | procps/pmap.c | 4 | ||||
-rw-r--r-- | procps/smemcap.c | 3 |
2 files changed, 5 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 | ||
diff --git a/procps/smemcap.c b/procps/smemcap.c index f951a5fb6..196c91f54 100644 --- a/procps/smemcap.c +++ b/procps/smemcap.c | |||
@@ -125,5 +125,8 @@ int smemcap_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
125 | } | 125 | } |
126 | } | 126 | } |
127 | 127 | ||
128 | if (ENABLE_FEATURE_CLEAN_UP) | ||
129 | closedir(d); | ||
130 | |||
128 | return EXIT_SUCCESS; | 131 | return EXIT_SUCCESS; |
129 | } | 132 | } |