summaryrefslogtreecommitdiff
path: root/epan
diff options
context:
space:
mode:
Diffstat (limited to 'epan')
-rw-r--r--epan/app_mem_usage.c8
-rw-r--r--epan/app_mem_usage.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/epan/app_mem_usage.c b/epan/app_mem_usage.c
index d35d0bf99e..e3435fd003 100644
--- a/epan/app_mem_usage.c
+++ b/epan/app_mem_usage.c
@@ -190,15 +190,15 @@ memory_usage_component_register(const ws_mem_usage_t *component)
}
const char *
-memory_usage_get(guint index, gsize *value)
+memory_usage_get(guint idx, gsize *value)
{
- if (index >= memory_register_num)
+ if (idx >= memory_register_num)
return NULL;
if (value)
- *value = memory_components[index]->fetch();
+ *value = memory_components[idx]->fetch();
- return memory_components[index]->name;
+ return memory_components[idx]->name;
}
void
diff --git a/epan/app_mem_usage.h b/epan/app_mem_usage.h
index dc4c314e90..23c23fd9fb 100644
--- a/epan/app_mem_usage.h
+++ b/epan/app_mem_usage.h
@@ -35,6 +35,6 @@ WS_DLL_PUBLIC void memory_usage_component_register(const ws_mem_usage_t *compone
WS_DLL_PUBLIC void memory_usage_gc(void);
-WS_DLL_PUBLIC const char *memory_usage_get(guint index, gsize *value);
+WS_DLL_PUBLIC const char *memory_usage_get(guint idx, gsize *value);
#endif /* APP_MEM_USAGE_H */