clang-tidy: add Chrome-inspired checks
[lttng-tools.git] / src / common / compat / getenv.hpp
index 7a31fef9e0c2614481c52e1f5df11349d7fc4f9c..18b5dee97d9ab750f79e0ee0c7f3c26fe1147927 100644 (file)
@@ -14,7 +14,7 @@
 #include <common/error.hpp>
 
 static inline
-int lttng_is_setuid_setgid(void)
+int lttng_is_setuid_setgid()
 {
        return geteuid() != getuid() || getegid() != getgid();
 }
@@ -25,7 +25,7 @@ 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);
-               return NULL;
+               return nullptr;
        }
        return getenv(name);
 }
This page took 0.023003 seconds and 4 git commands to generate.