1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

Merge pull request #218 from poettering/dual-timestamp-null

everywhere: actually make use of DUAL_TIMESTAMP_NULL macro
This commit is contained in:
Daniel Mack 2015-06-16 11:03:27 +02:00
commit 5630aab1a8
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"))