Commits

Trammell Hudson  committed 56761d4

use c99 designated initializers to silence warnings in timezone_t array

  • Participants
  • Parent commits c5d1a51

Comments (0)

Files changed (1)

File timezones/src/tz.c

 
 static timezone_t timezones[NUM_TIMEZONES] =
 {
-	{ "New York", -5, {} },
-	{ "London", +0, {} },
-	{ "Tokyo", +8, {} },
+	{ .name = "New York", .offset = -5 },
+	{ .name = "London", .offset = +0 },
+	{ .name = "Tokyo", .offset = +8 },
 };