[PATCH 2/2] Drop unnecessary #includes from test-hashmap
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 14, 2013, 02:06 UTC
- Message-ID
- <20131214020640.GD2311@google.com>
- In-Reply-To
- <20131214020413.GB2311@google.com>
Per Documentation/CodingGuidelines most C files in git start with a #include of git-compat-util.h or another header file that includes it, such as cache.h or builtin.h. This file doesn't need anything beyond "git-compat-util.h", so use that.
Remove a #include of the system header <stdio.h> since it is already included by "git-compat-util.h".
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> --- test-hashmap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/test-hashmap.c b/test-hashmap.c index 7e86f88..f5183fb 100644 --- a/test-hashmap.c +++ b/test-hashmap.c @@ -1,6 +1,5 @@ -#include "cache.h" +#include "git-compat-util.h" #include "hashmap.h" -#include <stdio.h> struct test_entry {
-- 1.8.5.1