summaryrefslogtreecommitdiffstats
path: root/runtime/map.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-12-13 21:47:52 +0000
committerhunt <hunt>2005-12-13 21:47:52 +0000
commit083384f0d9541e7b4ca152ffda11bf9d7952b712 (patch)
treebbe96f4f1ba0602ce41f37f46f431dfc483c75a8 /runtime/map.c
parent7b99c7d3b84c70d9e9159d2baa1c00ce7b363314 (diff)
downloadsystemtap-steved-083384f0d9541e7b4ca152ffda11bf9d7952b712.tar.gz
systemtap-steved-083384f0d9541e7b4ca152ffda11bf9d7952b712.tar.xz
systemtap-steved-083384f0d9541e7b4ca152ffda11bf9d7952b712.zip
2005-12-13 Martin Hunt <hunt@redhat.com>
* map.c (_stp_map_sortn): Set a limit of 30 for n. Automatically call _stp_map_sort() if more is requested.
Diffstat (limited to 'runtime/map.c')
-rw-r--r--runtime/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/map.c b/runtime/map.c
index 19c02580..1fa4a0e5 100644
--- a/runtime/map.c
+++ b/runtime/map.c
@@ -564,7 +564,7 @@ void _stp_map_sort (MAP map, int keynum, int dir)
*/
void _stp_map_sortn(MAP map, int n, int keynum, int dir)
{
- if (n == 0) {
+ if (n == 0 || n > 30) {
_stp_map_sort(map, keynum, dir);
} else {
struct list_head *head = &map->head;