From ea76bac09891e403aa8a9da073db35281c819b4d Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Mon, 18 May 2015 13:28:57 +0200 Subject: [PATCH] pragma once --- pdns/dns.hh | 4 +--- pdns/misc.hh | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pdns/dns.hh b/pdns/dns.hh index ad7d5ecb3a..831e2bd971 100644 --- a/pdns/dns.hh +++ b/pdns/dns.hh @@ -21,8 +21,7 @@ */ // $Id$ /* (C) 2002 POWERDNS.COM BV */ -#ifndef DNS_HH -#define DNS_HH +#pragma once #include #include #include @@ -225,4 +224,3 @@ void fillSOAData(const string &content, SOAData &data); /** for use by DNSPacket, converts a SOAData class to a ascii line again */ string serializeSOAData(const SOAData &data); string &attodot(string &str); //!< for when you need to insert an email address in the SOA -#endif diff --git a/pdns/misc.hh b/pdns/misc.hh index e72236de0e..acbc2c8b3e 100644 --- a/pdns/misc.hh +++ b/pdns/misc.hh @@ -19,8 +19,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef MISC_HH -#define MISC_HH +#pragma once #include #include #include @@ -558,4 +557,3 @@ bool setNonBlocking( int sock ); int closesocket(int fd); bool setCloseOnExec(int sock); uint64_t udpErrorStats(const std::string& str); -#endif -- 2.47.2