calendarspec: encode that it's OK to store µs in 'int's

This commit is contained in:
Lennart Poettering
2020-05-05 08:57:14 +02:00
parent 848cfa74d2
commit a4d6d711cf
+3
View File
@@ -30,6 +30,9 @@
* linked compenents anyway. */
#define CALENDARSPEC_COMPONENTS_MAX 240
/* Let's make sure that the microsecond component is safe to be stored in an 'int' */
assert_cc(INT_MAX >= USEC_PER_SEC);
static void chain_free(CalendarComponent *c) {
CalendarComponent *n;