]> mj.ucw.cz Git - libucw.git/commitdiff
main_get_timer() made public.
authorMartin Mares <mj@ucw.cz>
Tue, 8 Nov 2005 21:10:50 +0000 (21:10 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 8 Nov 2005 21:10:50 +0000 (21:10 +0000)
lib/mainloop.c
lib/mainloop.h

index 57e73742134e8d88e28b8dafba42c3becb2f360e..7986944e833a130a8295806ca46724bc9dc84680 100644 (file)
@@ -34,7 +34,7 @@ static uns main_poll_table_obsolete, main_poll_table_size;
 static struct pollfd *main_poll_table;
 static uns main_sigchld_set_up;
 
-static void
+void
 main_get_time(void)
 {
   struct timeval tv;
index 434f639b4add70fa4a99732f98a4b279849727ec..1e1adf38a1ad62887340711ded51e4d0d700294d 100644 (file)
@@ -29,6 +29,8 @@ struct main_timer {
 void timer_add(struct main_timer *tm, timestamp_t expires);    /* Can modify a running timer, too */
 void timer_del(struct main_timer *tm);
 
+void main_get_time(void);                      /* Refresh main_now */
+
 /* Files to poll */
 
 struct main_file {