]> Sergey Matveev's repositories - nnn.git/commitdiff
Use inline for once-used function
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 26 Sep 2020 17:47:25 +0000 (23:17 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 26 Sep 2020 17:47:25 +0000 (23:17 +0530)
src/nnn.c

index 6688ad91e1522e1e4027809cbce1b3e75a141152..82a80eb86ccdd84159002676dc4dccf203882fe2 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1971,7 +1971,7 @@ static char *xgetenv(const char * const name, char *fallback)
 }
 
 /* Checks if an env variable is set to 1 */
-static uint xgetenv_val(const char *name)
+static inline uint xgetenv_val(const char *name)
 {
        char *str = getenv(name);