super fading
[dana/dcompmgr.git] / time.c
diff --git a/time.c b/time.c
index a90b1cd..889fdd7 100644 (file)
--- a/time.c
+++ b/time.c
@@ -21,7 +21,7 @@ time_add(struct timeval *tv, long microseconds)
 }
 
 long
-time_compare(struct timeval *a, struct timeval *b)
+time_compare(const struct timeval *a, const struct timeval *b)
 {
     long r;
     if ((r = a->tv_sec - b->tv_sec)) return r;
@@ -29,7 +29,8 @@ time_compare(struct timeval *a, struct timeval *b)
 }
 
 void
-time_difference(struct timeval *a, struct timeval *b, struct timeval *r)
+time_difference(const struct timeval *a, const struct timeval *b,
+                struct timeval *r)
 {
     struct timeval v;
     v.tv_sec = a->tv_sec - b->tv_sec;