Skip to content

Commit 6e1efcd

Browse files
committed
tree-wide: add missing header includes
We're missing some header includes leading to missing function prototypes. While we currently don't warn about these, we should have their respective headers included in order to detect the case where a function signature change results in an incompatibility.
1 parent a6c9e0b commit 6e1efcd

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/config_snapshot.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
77

8-
#include "config.h"
8+
#include "config_backend.h"
99

10+
#include "config.h"
1011
#include "config_entries.h"
1112

1213
typedef struct {

src/reflog.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
#include "signature.h"
1313
#include "refdb.h"
1414

15-
#include <git2/sys/refdb_backend.h>
15+
#include "git2/sys/refdb_backend.h"
16+
#include "git2/sys/reflog.h"
1617

1718
void git_reflog_entry__free(git_reflog_entry *entry)
1819
{

src/streams/registry.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
77

8-
#include "git2/errors.h"
9-
108
#include "common.h"
9+
10+
#include "streams/registry.h"
11+
1112
#include "global.h"
1213
#include "streams/tls.h"
1314
#include "streams/mbedtls.h"

0 commit comments

Comments
 (0)