diff options
Diffstat (limited to 'src/libsystemd')
-rw-r--r-- | src/libsystemd/sd-event/sd-event.c | 2 | ||||
-rw-r--r-- | src/libsystemd/sd-journal/journal-file.c | 2 | ||||
-rw-r--r-- | src/libsystemd/sd-journal/test-journal-append.c | 2 | ||||
-rw-r--r-- | src/libsystemd/sd-journal/test-journal-interleaving.c | 2 | ||||
-rw-r--r-- | src/libsystemd/sd-journal/test-journal-stream.c | 2 | ||||
-rw-r--r-- | src/libsystemd/sd-journal/test-journal-verify.c | 2 | ||||
-rw-r--r-- | src/libsystemd/sd-journal/test-journal.c | 4 |
7 files changed, 8 insertions, 8 deletions
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c index aba458185b..288798a0dc 100644 --- a/src/libsystemd/sd-event/sd-event.c +++ b/src/libsystemd/sd-event/sd-event.c @@ -4612,7 +4612,7 @@ static int process_epoll(sd_event *e, usec_t timeout, int64_t threshold, int64_t /* Set timestamp only when this is called first time. */ if (threshold == INT64_MAX) - triple_timestamp_get(&e->timestamp); + triple_timestamp_now(&e->timestamp); for (size_t i = 0; i < m; i++) { diff --git a/src/libsystemd/sd-journal/journal-file.c b/src/libsystemd/sd-journal/journal-file.c index 4b74d06997..f72498c2e7 100644 --- a/src/libsystemd/sd-journal/journal-file.c +++ b/src/libsystemd/sd-journal/journal-file.c @@ -2530,7 +2530,7 @@ int journal_file_append_entry( "Invalid monotomic timestamp %" PRIu64 ", refusing entry.", ts->monotonic); } else { - dual_timestamp_get(&_ts); + dual_timestamp_now(&_ts); ts = &_ts; } diff --git a/src/libsystemd/sd-journal/test-journal-append.c b/src/libsystemd/sd-journal/test-journal-append.c index 90a7ccb00f..24b98c8b4a 100644 --- a/src/libsystemd/sd-journal/test-journal-append.c +++ b/src/libsystemd/sd-journal/test-journal-append.c @@ -27,7 +27,7 @@ static int journal_append_message(JournalFile *mj, const char *message) { assert(mj); assert(message); - dual_timestamp_get(&ts); + dual_timestamp_now(&ts); iovec = IOVEC_MAKE_STRING(message); return journal_file_append_entry( mj, diff --git a/src/libsystemd/sd-journal/test-journal-interleaving.c b/src/libsystemd/sd-journal/test-journal-interleaving.c index fe97a9e4a6..eff908bde0 100644 --- a/src/libsystemd/sd-journal/test-journal-interleaving.c +++ b/src/libsystemd/sd-journal/test-journal-interleaving.c @@ -64,7 +64,7 @@ static void append_number(JournalFile *f, int n, const sd_id128_t *boot_id, uint struct iovec iovec[2]; size_t n_iov = 0; - dual_timestamp_get(&ts); + dual_timestamp_now(&ts); if (ts.monotonic <= previous_ts.monotonic) ts.monotonic = previous_ts.monotonic + 1; diff --git a/src/libsystemd/sd-journal/test-journal-stream.c b/src/libsystemd/sd-journal/test-journal-stream.c index 1dbfdcd607..3a370ef311 100644 --- a/src/libsystemd/sd-journal/test-journal-stream.c +++ b/src/libsystemd/sd-journal/test-journal-stream.c @@ -85,7 +85,7 @@ static void run_test(void) { dual_timestamp ts; struct iovec iovec[2]; - dual_timestamp_get(&ts); + dual_timestamp_now(&ts); if (ts.monotonic <= previous_ts.monotonic) ts.monotonic = previous_ts.monotonic + 1; diff --git a/src/libsystemd/sd-journal/test-journal-verify.c b/src/libsystemd/sd-journal/test-journal-verify.c index d05312c88f..edce44049a 100644 --- a/src/libsystemd/sd-journal/test-journal-verify.c +++ b/src/libsystemd/sd-journal/test-journal-verify.c @@ -108,7 +108,7 @@ static int run_test(const char *verification_key, ssize_t max_iterations) { struct iovec iovec; struct dual_timestamp ts; - dual_timestamp_get(&ts); + dual_timestamp_now(&ts); assert_se(asprintf(&test, "RANDOM=%li", random() % RANDOM_RANGE)); iovec = IOVEC_MAKE_STRING(test); assert_se(journal_file_append_entry( diff --git a/src/libsystemd/sd-journal/test-journal.c b/src/libsystemd/sd-journal/test-journal.c index badf6cdb45..96f2b6719e 100644 --- a/src/libsystemd/sd-journal/test-journal.c +++ b/src/libsystemd/sd-journal/test-journal.c @@ -41,7 +41,7 @@ static void test_non_empty_one(void) { assert_se(journal_file_open(-1, "test.journal", O_RDWR|O_CREAT, JOURNAL_COMPRESS|JOURNAL_SEAL, 0666, UINT64_MAX, NULL, m, NULL, &f) == 0); - assert_se(dual_timestamp_get(&ts)); + assert_se(dual_timestamp_now(&ts)); assert_se(sd_id128_randomize(&fake_boot_id) == 0); iovec = IOVEC_MAKE_STRING(test); @@ -196,7 +196,7 @@ static bool check_compressed(uint64_t compress_threshold, uint64_t data_size) { assert_se(journal_file_open(-1, "test.journal", O_RDWR|O_CREAT, JOURNAL_COMPRESS|JOURNAL_SEAL, 0666, compress_threshold, NULL, m, NULL, &f) == 0); - dual_timestamp_get(&ts); + dual_timestamp_now(&ts); iovec = IOVEC_MAKE(data, data_size); assert_se(journal_file_append_entry(f, &ts, NULL, &iovec, 1, NULL, NULL, NULL, NULL) == 0); |