From eb6e1106a7b29de56e938eaca2d26c9abf906bae Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 18 Jan 2018 16:50:21 +0100 Subject: [PATCH] ixfr: Fix int/uint issue when writing files to disk --- pdns/ixfrutils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/ixfrutils.cc b/pdns/ixfrutils.cc index 42b5906fa1..d7d0cd6173 100644 --- a/pdns/ixfrutils.cc +++ b/pdns/ixfrutils.cc @@ -99,7 +99,7 @@ uint32_t getSerialFromRecords(const records_t& records, DNSRecord& soaret) void writeZoneToDisk(const records_t& records, const DNSName& zone, const std::string& directory) { DNSRecord soa; - int serial = getSerialFromRecords(records, soa); + auto serial = getSerialFromRecords(records, soa); string fname=directory +"/"+std::to_string(serial); FILE* fp=fopen((fname+".partial").c_str(), "w"); if(!fp) -- 2.47.2