Skip to content

Commit 9892dc8

Browse files
abhishekkumar2718gitster
authored andcommitted
commit-slab-decl.h: update include guard
When a9f1f1f ("commit-slab.h: code split", 2018-05-19) split commit-slab.h into commit-slab-decl.h and commit-slab-impl.h header files, commit-slab-decl.h were left to use "COMMIT_SLAB_HDR_H", while commit-slab-impl.h gained its own macro, "COMMIT_SLAB_IMPL_H". As these two files use different include guards, there is nothing broken, but let's update commit-slab-decl.h to match the convention to name the include guard after the filename. Signed-off-by: Abhishek Kumar <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent efcab5b commit 9892dc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commit-slab-decl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef COMMIT_SLAB_HDR_H
2-
#define COMMIT_SLAB_HDR_H
1+
#ifndef COMMIT_SLAB_DECL_H
2+
#define COMMIT_SLAB_DECL_H
33

44
/* allocate ~512kB at once, allowing for malloc overhead */
55
#ifndef COMMIT_SLAB_SIZE
@@ -40,4 +40,4 @@ elemtype *slabname## _peek(struct slabname *s, const struct commit *c)
4040
declare_commit_slab(slabname, elemtype); \
4141
declare_commit_slab_prototypes(slabname, elemtype)
4242

43-
#endif /* COMMIT_SLAB_HDR_H */
43+
#endif /* COMMIT_SLAB_DECL_H */

0 commit comments

Comments
 (0)