Small changed to reduce the number of warnings.

This commit is contained in:
Ondrej Filip 2005-02-14 11:58:46 +00:00
parent b181f444a6
commit 030d3b387e
2 changed files with 3 additions and 2 deletions

View file

@ -241,7 +241,7 @@ password_begin_list:
PASSWORDS { PASSWORDS {
this_p_list = cfg_alloc(sizeof(list)); this_p_list = cfg_alloc(sizeof(list));
init_list(this_p_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->accto = TIME_INFINITY;
this_p_item->id = 1; this_p_item->id = 1;
add_tail(this_p_list, &this_p_item->n); add_tail(this_p_list, &this_p_item->n);
$$ = this_p_list; $$ = (void *) this_p_list;
} }
; ;

View file

@ -33,6 +33,7 @@ void tm_dump_all(void);
extern bird_clock_t now; /* Time in seconds since unknown epoch */ 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_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 */ 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 */ #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 */ void tm_format_datetime(char *, bird_clock_t); /* Convert bird_clock_t to date + time */