summaryrefslogtreecommitdiff
path: root/tar.h
diff options
context:
space:
mode:
authorElia Pinto <gitter.spiros@gmail.com>2019-11-07 10:12:43 +0000
committerJunio C Hamano <gitster@pobox.com>2019-11-07 20:12:04 +0900
commit46efd28be15a7ce27b3a0594497533e67bac0d81 (patch)
treecee3a58cd9ba520e13bcae808971f87cf88d677e /tar.h
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9 (diff)
downloadgit-46efd28be15a7ce27b3a0594497533e67bac0d81.tar.gz
kset.h, tar.h: add missing header guard to prevent multiple inclusion
Add missing headers to prevent ill-effects from multiple inclusion. Found by the LGTM source code analyzer. Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tar.h')
-rw-r--r--tar.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tar.h b/tar.h
index 3467705e9b..6b258c4d4a 100644
--- a/tar.h
+++ b/tar.h
@@ -1,3 +1,6 @@
+#ifndef TAR_H
+#define TAR_H
+
#define TYPEFLAG_AUTO '\0'
#define TYPEFLAG_REG '0'
#define TYPEFLAG_LNK '2'
@@ -23,3 +26,5 @@ struct ustar_header {
char devminor[8]; /* 337 */
char prefix[155]; /* 345 */
};
+
+#endif /* TAR_H */