1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

everywhere: actually make use of DUAL_TIMESTAMP_NULL macro

Let's use it as initializer where appropriate.
This commit is contained in:
Lennart Poettering 2015-06-16 01:08:12 +02:00
parent 5febf10c1c
commit 5cb14b3742
8 changed files with 8 additions and 8 deletions

View File

@ -360,7 +360,7 @@ int manager_get_user_by_pid(Manager *m, pid_t pid, User **user) {
int manager_get_idle_hint(Manager *m, dual_timestamp *t) {
Session *s;
bool idle_hint;
dual_timestamp ts = { 0, 0 };
dual_timestamp ts = DUAL_TIMESTAMP_NULL;
Iterator i;
assert(m);

View File

@ -158,7 +158,7 @@ static int property_get_idle_since_hint(
sd_bus_error *error) {
Manager *m = userdata;
dual_timestamp t;
dual_timestamp t = DUAL_TIMESTAMP_NULL;
assert(bus);
assert(reply);

View File

@ -371,7 +371,7 @@ bool manager_is_inhibited(
Inhibitor *i;
Iterator j;
struct dual_timestamp ts = { 0, 0 };
struct dual_timestamp ts = DUAL_TIMESTAMP_NULL;
bool inhibited = false;
assert(m);

View File

@ -599,7 +599,7 @@ bool seat_can_graphical(Seat *s) {
int seat_get_idle_hint(Seat *s, dual_timestamp *t) {
Session *session;
bool idle_hint = true;
dual_timestamp ts = { 0, 0 };
dual_timestamp ts = DUAL_TIMESTAMP_NULL;
assert(s);

View File

@ -163,7 +163,7 @@ static int property_get_idle_since_hint(
sd_bus_error *error) {
Session *s = userdata;
dual_timestamp t;
dual_timestamp t = DUAL_TIMESTAMP_NULL;
uint64_t u;
int r;

View File

@ -138,7 +138,7 @@ static int property_get_idle_since_hint(
sd_bus_error *error) {
User *u = userdata;
dual_timestamp t;
dual_timestamp t = DUAL_TIMESTAMP_NULL;
uint64_t k;
assert(bus);

View File

@ -619,7 +619,7 @@ int user_finalize(User *u) {
int user_get_idle_hint(User *u, dual_timestamp *t) {
Session *s;
bool idle_hint = true;
dual_timestamp ts = { 0, 0 };
dual_timestamp ts = DUAL_TIMESTAMP_NULL;
assert(u);

View File

@ -1183,7 +1183,7 @@ static int list_timers(sd_bus *bus, char **args) {
for (u = unit_infos; u < unit_infos + n; u++) {
_cleanup_strv_free_ char **triggered = NULL;
dual_timestamp next = {};
dual_timestamp next = DUAL_TIMESTAMP_NULL;
usec_t m, last = 0;
if (!endswith(u->id, ".timer"))