You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2017/08/22 00:29:57 UTC
[trafficserver] 02/02: Use pragma once
This is an automated email from the ASF dual-hosted git repository.
maskit pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 8562c59545fd70e0c5ad5e6c57d7f073fac9ce03
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Tue Aug 22 09:29:28 2017 +0900
Use pragma once
---
iocore/net/quic/QUICCrypto.h | 5 +----
iocore/net/quic/QUICEchoApp.h | 4 +---
iocore/net/quic/QUICHandshake.h | 5 +----
3 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/iocore/net/quic/QUICCrypto.h b/iocore/net/quic/QUICCrypto.h
index 0c704b2..f4c7fc9 100644
--- a/iocore/net/quic/QUICCrypto.h
+++ b/iocore/net/quic/QUICCrypto.h
@@ -21,8 +21,7 @@
* limitations under the License.
*/
-#ifndef __QUIC_CRYPTO__
-#define __QUIC_CRYPTO__
+#pragma once
#include <openssl/ssl.h>
@@ -117,5 +116,3 @@ private:
QUICPacketProtection *_server_pp = nullptr;
NetVConnectionContext_t _netvc_context = NET_VCONNECTION_UNSET;
};
-
-#endif // __QUIC_CRYPTO__
diff --git a/iocore/net/quic/QUICEchoApp.h b/iocore/net/quic/QUICEchoApp.h
index 82e1239..8a61f90 100644
--- a/iocore/net/quic/QUICEchoApp.h
+++ b/iocore/net/quic/QUICEchoApp.h
@@ -21,8 +21,7 @@
* limitations under the License.
*/
-#ifndef __QUIC_ECHOAPP__
-#define __QUIC_ECHOAPP__
+#pragma once
#include "QUICApplication.h"
@@ -38,4 +37,3 @@ public:
int main_event_handler(int event, Event *data);
};
-#endif // __QUIC_HANDSHAKE__
diff --git a/iocore/net/quic/QUICHandshake.h b/iocore/net/quic/QUICHandshake.h
index 6f01e80..64074a0 100644
--- a/iocore/net/quic/QUICHandshake.h
+++ b/iocore/net/quic/QUICHandshake.h
@@ -21,8 +21,7 @@
* limitations under the License.
*/
-#ifndef __QUIC_HANDSHAKE__
-#define __QUIC_HANDSHAKE__
+#pragma once
#include "QUICConnection.h"
#include "QUICApplication.h"
@@ -63,5 +62,3 @@ private:
QUICError _process_client_finished();
QUICError _process_handshake_complete();
};
-
-#endif // __QUIC_HANDSHAKE__
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.