Clean-up: run format-cpp on the tree
[lttng-tools.git] / src / common / compat / getenv.hpp
index 18b5dee97d9ab750f79e0ee0c7f3c26fe1147927..d37db05fc72ba53f8e8fcd65244666213876484d 100644 (file)
@@ -8,23 +8,22 @@
  *
  */
 
+#include <common/error.hpp>
+
 #include <stdlib.h>
-#include <unistd.h>
 #include <sys/types.h>
-#include <common/error.hpp>
+#include <unistd.h>
 
-static inline
-int lttng_is_setuid_setgid()
+static inline int lttng_is_setuid_setgid()
 {
        return geteuid() != getuid() || getegid() != getgid();
 }
 
-static inline
-char *lttng_secure_getenv(const char *name)
+static inline char *lttng_secure_getenv(const char *name)
 {
        if (lttng_is_setuid_setgid()) {
                WARN("Getting environment variable '%s' from setuid/setgid binary refused for security reasons.",
-                       name);
+                    name);
                return nullptr;
        }
        return getenv(name);
This page took 0.024605 seconds and 4 git commands to generate.