From 019522b10473fe00145321f4699af4745227211f Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Mon, 11 Apr 2016 10:43:24 -0400 Subject: Don't use the prohibited API open(). This open call is Linux-specific (so there's no harm in using open() rather than ws_open()) but this will keep checkAPIs happy. Change-Id: I5695c1bd3b1a4af320ef0acfa1a8162c1d9f14e1 Reviewed-on: https://code.wireshark.org/review/14879 Petri-Dish: Jeff Morriss Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte Reviewed-by: Michael Mann --- epan/app_mem_usage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'epan/app_mem_usage.c') diff --git a/epan/app_mem_usage.c b/epan/app_mem_usage.c index c5db894bad..d35d0bf99e 100644 --- a/epan/app_mem_usage.c +++ b/epan/app_mem_usage.c @@ -42,6 +42,7 @@ # include #endif +#include "wsutil/file_util.h" #include "app_mem_usage.h" #define MAX_COMPONENTS 16 @@ -96,7 +97,7 @@ linux_get_memory(gsize *ptotal, gsize *prss) g_snprintf(path, sizeof(path), "/proc/%d/statm", getpid()); - fd = open(path, O_RDONLY); + fd = ws_open(path, O_RDONLY); /* XXX, fallback to some other /proc file ? */ } -- cgit v1.2.3