Convert time-related variables to consistently use "unsigned long".
[srvx.git] / src / tools.c
index 691471cbc4b84ec50e7936d5c58bdc91c35f5acc..8f0c2998cfe8cb719212a6a577c6a7370a30f0ec 100644 (file)
@@ -855,12 +855,12 @@ unsplit_string(char *set[], unsigned int max, char *dest)
 }
 
 char *
-intervalString(char *output, time_t interval, struct handle_info *hi)
+intervalString(char *output, unsigned long interval, struct handle_info *hi)
 {
     static const struct {
         const char *msg_single;
         const char *msg_plural;
-        long length;
+        unsigned long length;
     } unit[] = {
         { "MSG_YEAR",   "MSG_YEARS", 365 * 24 * 60 * 60 },
         { "MSG_WEEK",   "MSG_WEEKS",   7 * 24 * 60 * 60 },