Skip to content

Commit

Permalink
Use designated initializer in another spot.
Browse files Browse the repository at this point in the history
  • Loading branch information
niklata committed Feb 20, 2024
1 parent 29771a8 commit b64705e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ static bool day_sieve_day_ok(struct day_sieve *self, int i) { return self->filte

static bool day_sieve_build(struct day_sieve *self, struct Job const *entry, int year)
{
struct tm t = {0};
t.tm_mday = 1;
t.tm_year = year;
t.tm_isdst = -1;
struct tm t = { .tm_mday = 1, .tm_year = year, .tm_isdst = -1 };
*self = (struct day_sieve){ .start_ts = mktime(&t) };
if (self->start_ts == -1) return false;

Expand Down

0 comments on commit b64705e

Please sign in to comment.