Use time_t instead of long.
authorEmil Mikulic <emikulic@gmail.com>
Sat, 25 Jan 2014 09:37:11 +0000 (20:37 +1100)
committerEmil Mikulic <emikulic@gmail.com>
Sat, 25 Jan 2014 14:07:28 +0000 (01:07 +1100)
http.c
localip.h

diff --git a/http.c b/http.c
index e39f16b..1da660b 100644 (file)
--- a/http.c
+++ b/http.c
@@ -56,7 +56,7 @@ struct connection {
 
     int socket;
     struct sockaddr_storage client;
-    long last_active_mono;
+    time_t last_active_mono;
     enum {
         RECV_REQUEST,          /* receiving request */
         SEND_HEADER_AND_REPLY, /* try to send header+reply together */
index a5b48ea..da3e0ce 100644 (file)
--- a/localip.h
+++ b/localip.h
@@ -13,7 +13,7 @@
 
 struct local_ips {
    int is_valid;
-   long last_update_mono;
+   time_t last_update_mono;
    int num_addrs;
    struct addr *addrs;
 };