summaryrefslogtreecommitdiff
path: root/src/transports
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-02-01 15:55:48 -0800
committerEdward Thomson <ethomson@edwardthomson.com>2018-02-01 15:56:33 -0800
commitabb04caa2f74bb4783eb87202a904c0c3517df85 (patch)
tree82454226761e79a9620f93bdeecf86821615f00e /src/transports
parentf55accce05c3eff9a3ef09a06e80c09135328790 (diff)
downloadlibgit2-abb04caa2f74bb4783eb87202a904c0c3517df85.tar.gz
consistent header guardsethomson/header_guards
use consistent names for the #include / #define header guard pattern.
Diffstat (limited to 'src/transports')
-rw-r--r--src/transports/auth.h5
-rw-r--r--src/transports/auth_negotiate.h5
-rw-r--r--src/transports/cred.h4
-rw-r--r--src/transports/smart.h4
-rw-r--r--src/transports/ssh.h4
5 files changed, 12 insertions, 10 deletions
diff --git a/src/transports/auth.h b/src/transports/auth.h
index 06af79dec..3b8b29eb9 100644
--- a/src/transports/auth.h
+++ b/src/transports/auth.h
@@ -5,8 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
-#ifndef INCLUDE_http_auth_h__
-#define INCLUDE_http_auth_h__
+#ifndef INCLUDE_transports_auth_h__
+#define INCLUDE_transports_auth_h__
#include "common.h"
@@ -62,4 +62,3 @@ int git_http_auth_basic(
const gitno_connection_data *connection_data);
#endif
-
diff --git a/src/transports/auth_negotiate.h b/src/transports/auth_negotiate.h
index 5866c19c3..15a528aaf 100644
--- a/src/transports/auth_negotiate.h
+++ b/src/transports/auth_negotiate.h
@@ -5,8 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
-#ifndef INCLUDE_auth_negotiate_h__
-#define INCLUDE_auth_negotiate_h__
+#ifndef INCLUDE_transports_auth_negotiate_h__
+#define INCLUDE_transports_auth_negotiate_h__
#include "common.h"
#include "git2.h"
@@ -25,4 +25,3 @@ extern int git_http_auth_negotiate(
#endif /* GIT_GSSAPI */
#endif
-
diff --git a/src/transports/cred.h b/src/transports/cred.h
index dceab9aa3..ed5821c55 100644
--- a/src/transports/cred.h
+++ b/src/transports/cred.h
@@ -4,8 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
-#ifndef INCLUDE_git_cred_h__
-#define INCLUDE_git_cred_h__
+#ifndef INCLUDE_transports_cred_h__
+#define INCLUDE_transports_cred_h__
#include "common.h"
diff --git a/src/transports/smart.h b/src/transports/smart.h
index f1ad70479..e33a25402 100644
--- a/src/transports/smart.h
+++ b/src/transports/smart.h
@@ -4,6 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
+#ifndef INCLUDE_transports_smart_h__
+#define INCLUDE_transports_smart_h__
#include "common.h"
@@ -194,3 +196,5 @@ int git_pkt_buffer_done(git_buf *buf);
int git_pkt_buffer_wants(const git_remote_head * const *refs, size_t count, transport_smart_caps *caps, git_buf *buf);
int git_pkt_buffer_have(git_oid *oid, git_buf *buf);
void git_pkt_free(git_pkt *pkt);
+
+#endif
diff --git a/src/transports/ssh.h b/src/transports/ssh.h
index e36e7246e..d3e741f1d 100644
--- a/src/transports/ssh.h
+++ b/src/transports/ssh.h
@@ -4,8 +4,8 @@
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
-#ifndef INCLUDE_ssh_h__
-#define INCLUDE_ssh_h__
+#ifndef INCLUDE_transports_ssh_h__
+#define INCLUDE_transports_ssh_h__
#include "common.h"