summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2015-09-07 21:16:58 -0700
committerAaron Plattner <aplattner@nvidia.com>2015-09-07 21:18:33 -0700
commitfb5362be7a6d6f89f76c5e171c339f5fa1916d38 (patch)
tree0f84381e7054eda1d3a75e6f0ebcc63733803c4e
parent1cda354bdfd0c9ca107293b84b52f4464fdbedcc (diff)
util.h: Make getenv_wrapper() static inline
Otherwise, GCC generates a "‘getenv_wrapper’ defined but not used" warning. Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-rw-r--r--src/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 1452c06..39227ea 100644
--- a/src/util.h
+++ b/src/util.h
@@ -28,7 +28,7 @@
#include <unistd.h>
#include <stdlib.h>
-static char * getenv_wrapper(const char *name)
+static inline char * getenv_wrapper(const char *name)
{
if (getuid() == geteuid() && getgid() == getegid()) {
return getenv(name);