trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From masa...@apache.org
Subject [trafficserver] branch master updated: LGTM: Add header guards
Date Thu, 19 Dec 2019 05:15:24 GMT
This is an automated email from the ASF dual-hosted git repository.

masaori pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new a139fd1  LGTM: Add header guards
a139fd1 is described below

commit a139fd194eb2906a28781e5e7e1940a076ed60ce
Author: Masaori Koshiba <masaori@apache.org>
AuthorDate: Wed Dec 18 08:48:42 2019 +0900

    LGTM: Add header guards
---
 plugins/authproxy/utils.h                    | 2 ++
 plugins/experimental/geoip_acl/acl.h         | 3 +++
 plugins/experimental/sslheaders/sslheaders.h | 2 ++
 plugins/experimental/uri_signing/config.h    | 2 ++
 plugins/experimental/uri_signing/cookie.h    | 2 ++
 plugins/experimental/uri_signing/jwt.h       | 2 ++
 plugins/experimental/uri_signing/normalize.h | 2 ++
 plugins/experimental/uri_signing/parse.h     | 2 ++
 plugins/experimental/uri_signing/timing.h    | 2 ++
 src/traffic_layout/info.h                    | 2 ++
 10 files changed, 21 insertions(+)

diff --git a/plugins/authproxy/utils.h b/plugins/authproxy/utils.h
index fae4b90..51cf01c 100644
--- a/plugins/authproxy/utils.h
+++ b/plugins/authproxy/utils.h
@@ -16,6 +16,8 @@
  * limitations under the License.
  */
 
+#pragma once
+
 #include <ts/ts.h>
 #include <netinet/in.h>
 #include <memory>
diff --git a/plugins/experimental/geoip_acl/acl.h b/plugins/experimental/geoip_acl/acl.h
index b8e6b8c..7fa9387 100644
--- a/plugins/experimental/geoip_acl/acl.h
+++ b/plugins/experimental/geoip_acl/acl.h
@@ -15,6 +15,9 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 */
+
+#pragma once
+
 #include <cstdio>
 #include <cstring>
 #include <arpa/inet.h>
diff --git a/plugins/experimental/sslheaders/sslheaders.h b/plugins/experimental/sslheaders/sslheaders.h
index 571ea57..c3134aa 100644
--- a/plugins/experimental/sslheaders/sslheaders.h
+++ b/plugins/experimental/sslheaders/sslheaders.h
@@ -16,6 +16,8 @@
  * limitations under the License.
  */
 
+#pragma once
+
 #include <ts/ts.h>
 #include <ts/remap.h>
 #include <cstring>
diff --git a/plugins/experimental/uri_signing/config.h b/plugins/experimental/uri_signing/config.h
index 8768837..16bb6c9 100644
--- a/plugins/experimental/uri_signing/config.h
+++ b/plugins/experimental/uri_signing/config.h
@@ -16,6 +16,8 @@
  * limitations under the License.
  */
 
+#pragma once
+
 #include <stdbool.h>
 #include <stdlib.h>
 
diff --git a/plugins/experimental/uri_signing/cookie.h b/plugins/experimental/uri_signing/cookie.h
index a5d0f20..1944df9 100644
--- a/plugins/experimental/uri_signing/cookie.h
+++ b/plugins/experimental/uri_signing/cookie.h
@@ -16,5 +16,7 @@
  * limitations under the License.
  */
 
+#pragma once
+
 #include <stddef.h>
 const char *get_cookie_value(const char **cookie, size_t *cookie_ct, const char *key, size_t
*ct);
diff --git a/plugins/experimental/uri_signing/jwt.h b/plugins/experimental/uri_signing/jwt.h
index 95efbbc..1e4d58f 100644
--- a/plugins/experimental/uri_signing/jwt.h
+++ b/plugins/experimental/uri_signing/jwt.h
@@ -16,6 +16,8 @@
  * limitations under the License.
  */
 
+#pragma once
+
 #include <stdbool.h>
 #include <jansson.h>
 
diff --git a/plugins/experimental/uri_signing/normalize.h b/plugins/experimental/uri_signing/normalize.h
index a84c997..ced84bf 100644
--- a/plugins/experimental/uri_signing/normalize.h
+++ b/plugins/experimental/uri_signing/normalize.h
@@ -16,5 +16,7 @@
  * limitations under the License.
  */
 
+#pragma once
+
 int normalize_uri(const char *uri, int uri_ct, char *uri_normal, int buffer_size);
 int remove_dot_segments(const char *path, int path_ct, char *ret_buffer, int buff_ct);
diff --git a/plugins/experimental/uri_signing/parse.h b/plugins/experimental/uri_signing/parse.h
index d05bfd5..a16b3e9 100644
--- a/plugins/experimental/uri_signing/parse.h
+++ b/plugins/experimental/uri_signing/parse.h
@@ -16,6 +16,8 @@
  * limitations under the License.
  */
 
+#pragma once
+
 #include <stdlib.h>
 
 struct _cjose_jws_int;
diff --git a/plugins/experimental/uri_signing/timing.h b/plugins/experimental/uri_signing/timing.h
index 9511bcd..20768a5 100644
--- a/plugins/experimental/uri_signing/timing.h
+++ b/plugins/experimental/uri_signing/timing.h
@@ -16,6 +16,8 @@
  * limitations under the License.
  */
 
+#pragma once
+
 #include <stdint.h>
 #include <time.h>
 
diff --git a/src/traffic_layout/info.h b/src/traffic_layout/info.h
index fc3831c..9717d14 100644
--- a/src/traffic_layout/info.h
+++ b/src/traffic_layout/info.h
@@ -21,6 +21,8 @@
   limitations under the License.
  */
 
+#pragma once
+
 // the original traffic_layout
 
 void produce_features(bool json);


Mime
View raw message