29 lines
713 B
Text
29 lines
713 B
Text
--- src/ldapvacation/ldapvacation.c.orig Sun Mar 15 18:39:03 2015
|
|
+++ src/ldapvacation/ldapvacation.c Sun Mar 15 18:42:58 2015
|
|
@@ -37,7 +37,6 @@
|
|
#include <string.h>
|
|
#include <syslog.h>
|
|
#include <time.h>
|
|
-#include <tzfile.h>
|
|
#include <unistd.h>
|
|
|
|
#include "ldapvacation.h"
|
|
@@ -286,6 +285,8 @@ junkmail(void)
|
|
return(0);
|
|
}
|
|
|
|
+#define SECSPERDAY (24 * 60 * 60)
|
|
+
|
|
/*
|
|
* recent --
|
|
* find out if user has gotten a vacation message recently.
|
|
@@ -306,8 +307,7 @@ recent(void)
|
|
int n;
|
|
size_t l;
|
|
|
|
- next = interval == -1 ? (time_t)SECSPERDAY * (time_t)DAYSPERWEEK :
|
|
- interval;
|
|
+ next = interval == -1 ? SECSPERDAY * 7 : interval;
|
|
|
|
if (*query == '(')
|
|
snprintf(recent_query, sizeof(recent_query),
|