diff options
author | Mathis Beer <Mathis.Beer@funkwerk-itk.com> | 2019-02-05 07:43:40 +0100 |
---|---|---|
committer | Mathis Beer <Mathis.Beer@funkwerk-itk.com> | 2019-02-05 07:45:31 +0100 |
commit | 5c4fdb5173fa46341be42493f7954435afdc31b2 (patch) | |
tree | ad8a88d67878830d7388a9c4584a6d475e0a5098 /src | |
parent | 5c6518c597160109fbe599fb4db9ca91e4a6769c (diff) | |
download | libfaketime-5c4fdb5173fa46341be42493f7954435afdc31b2.tar.gz |
Rename DONT_FAKE_MONOTONIC to FAKETIME_DONT_FAKE_MONOTONIC for consistency.
The old variable still works.
Diffstat (limited to 'src')
-rw-r--r-- | src/faketime.c | 2 | ||||
-rw-r--r-- | src/libfaketime.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/faketime.c b/src/faketime.c index 037d749..4968c36 100644 --- a/src/faketime.c +++ b/src/faketime.c @@ -124,7 +124,7 @@ int main (int argc, char **argv) } else if (0 == strcmp(argv[curr_opt], "--exclude-monotonic")) { - setenv("DONT_FAKE_MONOTONIC", "1", true); + setenv("FAKETIME_DONT_FAKE_MONOTONIC", "1", true); curr_opt++; continue; } diff --git a/src/libfaketime.c b/src/libfaketime.c index a64f14b..ac756ef 100644 --- a/src/libfaketime.c +++ b/src/libfaketime.c @@ -1802,7 +1802,8 @@ static void ftpl_init(void) cache_enabled = 0; } } - if ((tmp_env = getenv("DONT_FAKE_MONOTONIC")) != NULL) + if ((tmp_env = getenv("FAKETIME_DONT_FAKE_MONOTONIC")) != NULL + || (tmp_env = getenv("DONT_FAKE_MONOTONIC")) != NULL) { if (0 == strcmp(tmp_env, "1")) { |