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>
This commit is contained in:
Elia Pinto
2019-11-07 10:12:43 +00:00
committed by Junio C Hamano
parent 5fa0f5238b
commit 46efd28be1
2 changed files with 9 additions and 0 deletions

5
tar.h
View File

@ -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 */