summaryrefslogtreecommitdiff
path: root/epan/app_mem_usage.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2016-04-11 10:43:24 -0400
committerMichael Mann <mmann78@netscape.net>2016-04-11 23:22:29 +0000
commit019522b10473fe00145321f4699af4745227211f (patch)
treeb10abf3754be8ecfb0313cae80e4b5d65dbf304c /epan/app_mem_usage.c
parent5112d1ec27e0b37fe4194fbc627877e28c027261 (diff)
downloadwireshark-019522b10473fe00145321f4699af4745227211f.tar.gz
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 <jeff.morriss.ws@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/app_mem_usage.c')
-rw-r--r--epan/app_mem_usage.c3
1 files changed, 2 insertions, 1 deletions
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 <fcntl.h>
#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 ? */
}