summaryrefslogtreecommitdiff
path: root/louloulibs/network
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-07-04 17:53:53 +0200
committerlouiz’ <louiz@louiz.org>2016-07-04 17:53:53 +0200
commit81f8f45b371d1a0ef72c2768fbd1f9188fe83616 (patch)
treec885946618afef4e6569a4fbb438e10447e1da4e /louloulibs/network
parent5321d29cbda7d69d306f36d0f84d2c599c85c90e (diff)
downloadbiboumi-81f8f45b371d1a0ef72c2768fbd1f9188fe83616.tar.gz
biboumi-81f8f45b371d1a0ef72c2768fbd1f9188fe83616.tar.bz2
biboumi-81f8f45b371d1a0ef72c2768fbd1f9188fe83616.tar.xz
biboumi-81f8f45b371d1a0ef72c2768fbd1f9188fe83616.zip
Replace all include guards by #pragma once
It’s $CURRENT_YEAR
Diffstat (limited to 'louloulibs/network')
-rw-r--r--louloulibs/network/credentials_manager.hpp5
-rw-r--r--louloulibs/network/dns_handler.hpp4
-rw-r--r--louloulibs/network/dns_socket_handler.hpp4
-rw-r--r--louloulibs/network/poller.hpp6
-rw-r--r--louloulibs/network/resolver.hpp6
-rw-r--r--louloulibs/network/socket_handler.hpp4
-rw-r--r--louloulibs/network/tcp_socket_handler.hpp6
7 files changed, 14 insertions, 21 deletions
diff --git a/louloulibs/network/credentials_manager.hpp b/louloulibs/network/credentials_manager.hpp
index c0d23ae..0fc4b89 100644
--- a/louloulibs/network/credentials_manager.hpp
+++ b/louloulibs/network/credentials_manager.hpp
@@ -1,5 +1,4 @@
-#ifndef BIBOUMI_CREDENTIALS_MANAGER_HPP
-#define BIBOUMI_CREDENTIALS_MANAGER_HPP
+#pragma once
#include "louloulibs.h"
@@ -37,4 +36,4 @@ private:
};
#endif //BOTAN_FOUND
-#endif //BIBOUMI_CREDENTIALS_MANAGER_HPP
+
diff --git a/louloulibs/network/dns_handler.hpp b/louloulibs/network/dns_handler.hpp
index d2b48d2..e0feb11 100644
--- a/louloulibs/network/dns_handler.hpp
+++ b/louloulibs/network/dns_handler.hpp
@@ -1,5 +1,4 @@
-#ifndef DNS_HANDLER_HPP_INCLUDED
-#define DNS_HANDLER_HPP_INCLUDED
+#pragma once
#include <louloulibs.h>
#ifdef CARES_FOUND
@@ -56,4 +55,3 @@ private:
};
#endif /* CARES_FOUND */
-#endif /* DNS_HANDLER_HPP_INCLUDED */
diff --git a/louloulibs/network/dns_socket_handler.hpp b/louloulibs/network/dns_socket_handler.hpp
index 5ea9846..dba2f26 100644
--- a/louloulibs/network/dns_socket_handler.hpp
+++ b/louloulibs/network/dns_socket_handler.hpp
@@ -1,5 +1,4 @@
-#ifndef DNS_SOCKET_HANDLER_HPP
-# define DNS_SOCKET_HANDLER_HPP
+#pragma once
#include <louloulibs.h>
#ifdef CARES_FOUND
@@ -44,4 +43,3 @@ private:
};
#endif // CARES_FOUND
-#endif // DNS_SOCKET_HANDLER_HPP
diff --git a/louloulibs/network/poller.hpp b/louloulibs/network/poller.hpp
index 4bf7432..fc1a1a1 100644
--- a/louloulibs/network/poller.hpp
+++ b/louloulibs/network/poller.hpp
@@ -1,5 +1,5 @@
-#ifndef POLLER_INCLUDED
-# define POLLER_INCLUDED
+#pragma once
+
#include <network/socket_handler.hpp>
@@ -91,4 +91,4 @@ private:
#endif
};
-#endif // POLLER_INCLUDED
+
diff --git a/louloulibs/network/resolver.hpp b/louloulibs/network/resolver.hpp
index fd57e25..afe6e2b 100644
--- a/louloulibs/network/resolver.hpp
+++ b/louloulibs/network/resolver.hpp
@@ -1,5 +1,5 @@
-#ifndef RESOLVER_HPP_INCLUDED
-#define RESOLVER_HPP_INCLUDED
+#pragma once
+
#include "louloulibs.h"
@@ -125,4 +125,4 @@ private:
std::string addr_to_string(const struct addrinfo* rp);
-#endif /* RESOLVER_HPP_INCLUDED */
+
diff --git a/louloulibs/network/socket_handler.hpp b/louloulibs/network/socket_handler.hpp
index feabcf1..eeb41fe 100644
--- a/louloulibs/network/socket_handler.hpp
+++ b/louloulibs/network/socket_handler.hpp
@@ -1,5 +1,4 @@
-#ifndef SOCKET_HANDLER_HPP
-# define SOCKET_HANDLER_HPP
+#pragma once
#include <louloulibs.h>
#include <memory>
@@ -41,4 +40,3 @@ protected:
socket_t socket;
};
-#endif // SOCKET_HANDLER_HPP
diff --git a/louloulibs/network/tcp_socket_handler.hpp b/louloulibs/network/tcp_socket_handler.hpp
index 91fa7a8..b0ba493 100644
--- a/louloulibs/network/tcp_socket_handler.hpp
+++ b/louloulibs/network/tcp_socket_handler.hpp
@@ -1,5 +1,5 @@
-#ifndef SOCKET_HANDLER_INCLUDED
-# define SOCKET_HANDLER_INCLUDED
+#pragma once
+
#include "louloulibs.h"
@@ -270,5 +270,5 @@ private:
#endif // BOTAN_FOUND
};
-#endif // SOCKET_HANDLER_INCLUDED
+