diff --git a/nest/config.Y b/nest/config.Y index 744c0692..91c3363b 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -241,7 +241,7 @@ password_begin_list: PASSWORDS { this_p_list = cfg_alloc(sizeof(list)); init_list(this_p_list); - $$ = this_p_list; + $$ = (void *) this_p_list; } ; @@ -257,7 +257,7 @@ password_begin: this_p_item->accto = TIME_INFINITY; this_p_item->id = 1; add_tail(this_p_list, &this_p_item->n); - $$ = this_p_list; + $$ = (void *) this_p_list; } ; diff --git a/sysdep/unix/timer.h b/sysdep/unix/timer.h index 5d22bb91..608dabb8 100644 --- a/sysdep/unix/timer.h +++ b/sysdep/unix/timer.h @@ -33,6 +33,7 @@ void tm_dump_all(void); extern bird_clock_t now; /* Time in seconds since unknown epoch */ bird_clock_t tm_parse_date(char *); /* Convert date to bird_clock_t */ +bird_clock_t tm_parse_datetime(char *); /* Convert date to bird_clock_t */ void tm_format_date(char *, bird_clock_t); /* Convert bird_clock_t to date */ #define TM_DATE_BUFFER_SIZE 12 /* Buffer size required by tm_format_date */ void tm_format_datetime(char *, bird_clock_t); /* Convert bird_clock_t to date + time */