mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Use inline for once-used function
This commit is contained in:
parent
1d903a8c90
commit
627c5cfc36
|
@ -1971,7 +1971,7 @@ static char *xgetenv(const char * const name, char *fallback)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Checks if an env variable is set to 1 */
|
/* 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);
|
char *str = getenv(name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue