From 46efd28be15a7ce27b3a0594497533e67bac0d81 Mon Sep 17 00:00:00 2001 From: Elia Pinto Date: Thu, 7 Nov 2019 10:12:43 +0000 Subject: 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 Signed-off-by: Junio C Hamano --- kwset.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kwset.h') diff --git a/kwset.h b/kwset.h index df99a92178..f50ecae573 100644 --- a/kwset.h +++ b/kwset.h @@ -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 */ -- cgit v1.2.3