summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2005-02-14 12:58:46 +0100
committerOndrej Filip <feela@network.cz>2005-02-14 12:58:46 +0100
commit030d3b387edae4a30fb524ed839be020b7b8df8e (patch)
tree50eaaf2acc66a3a66da0ae1977eb37ad2f0aa3bd
parentb181f444a6538b03a02296f02928e3c131b251a6 (diff)
downloadbird-030d3b387edae4a30fb524ed839be020b7b8df8e.tar
bird-030d3b387edae4a30fb524ed839be020b7b8df8e.zip
Small changed to reduce the number of warnings.
-rw-r--r--nest/config.Y4
-rw-r--r--sysdep/unix/timer.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/nest/config.Y b/nest/config.Y
index 744c069..91c3363 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 5d22bb9..608dabb 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 */