diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2015-09-07 21:16:58 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2015-09-07 21:18:33 -0700 |
commit | fb5362be7a6d6f89f76c5e171c339f5fa1916d38 (patch) | |
tree | 0f84381e7054eda1d3a75e6f0ebcc63733803c4e | |
parent | 1cda354bdfd0c9ca107293b84b52f4464fdbedcc (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |