Commit fb5362be authored by Aaron Plattner's avatar Aaron Plattner
Browse files

util.h: Make getenv_wrapper() static inline



Otherwise, GCC generates a "‘getenv_wrapper’ defined but not used" warning.
Signed-off-by: default avatarAaron Plattner <aplattner@nvidia.com>
parent 1cda354b
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment