diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-12-05 12:52:43 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-05 12:52:43 -0800 |
commit | 56d3ce82b0e2c29ce9e14ed95923ea7d0f41ae54 (patch) | |
tree | f10a0b687ac19d465ab43a1783f2aeca19397212 | |
parent | The second batch (diff) | |
parent | kset.h, tar.h: add missing header guard to prevent multiple inclusion (diff) | |
download | tgif-56d3ce82b0e2c29ce9e14ed95923ea7d0f41ae54.tar.xz |
Merge branch 'ep/guard-kset-tar-headers'
Code clean-up.
* ep/guard-kset-tar-headers:
kset.h, tar.h: add missing header guard to prevent multiple inclusion
-rw-r--r-- | kwset.h | 4 | ||||
-rw-r--r-- | tar.h | 5 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,6 @@ +#ifndef KWSET_H +#define KWSET_H + /* This file has been copied from commit e7ac713d^ in the GNU grep git * repository. A few small changes have been made to adapt the code to * Git. @@ -59,3 +62,4 @@ size_t kwsexec(kwset_t, char const *, size_t, struct kwsmatch *); /* Deallocate the given keyword set and all its associated storage. */ void kwsfree(kwset_t); +#endif /* KWSET_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 */ |