Commit Diff
Diff:
7d1bb6f453fa1ce6d67501b60c80c5e3fa6aeeff
35131c5ae6a00a23cbefbfb4202804dd21d3ca65
Commit:
35131c5ae6a00a23cbefbfb4202804dd21d3ca65
Tree:
e913957353145f4aa57cc5efa7e8160cb9e4e1fb
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Sat Dec 7 08:02:59 2019 UTC
Message:
this should make linux warn less about format
blob - 9860b4deb86076afc124a8682037113494f2e3ec
blob + 6f604be16303869a5a692f974a4a3249cd7ed300
--- raxfr.c
+++ raxfr.c
@@ -26,7 +26,7 @@
*
*/
/*
- * $Id: raxfr.c,v 1.44 2019/12/06 16:28:35 pjp Exp $
+ * $Id: raxfr.c,v 1.45 2019/12/07 08:02:59 pjp Exp $
*/
#include <sys/types.h>
@@ -2193,7 +2193,11 @@ pull_rzone(struct rzone *rzone, time_t now)
return -1;
}
+#if __linux__
+ fprintf(f, "; REPLICANT file for zone %s gotten on %ld\n\n", rzone->zonename, now);
+#else
fprintf(f, "; REPLICANT file for zone %s gotten on %lld\n\n", rzone->zonename, now);
+#endif
if (do_raxfr(f, rzone) < 0) {
dolog(LOG_INFO, "do_raxfr failed\n");
repomaster@centroid.eu