svn: 657
@@ -2102,8 +2102,10 @@ void baduname(char *conf, char *my_uname) {
sdprintf("CHECKING %s", tmpfile);
if (is_file(tmpfile)) {
struct stat ss;
+ time_t diff;
+
stat(tmpfile, &ss);
- time_t diff = now - ss.st_mtime;
+ diff = now - ss.st_mtime;
if (diff >= 86400) send++; /* only send once a day */
} else {
FILE *fp;
@@ -28,7 +28,9 @@
#define MODULE_NAME "compress"
#define MAKING_COMPRESS
+#define free_func zlib_free_func
#include <zlib.h>
+#undef free_func
#include <string.h>
#include <errno.h>