Rename git_revpool_* functions gitrp_* Otherwise their prototypes don't match their declarations. Detected by 'sparse', which is obviously good to run before each commit. Signed-off-by: Andreas Ericsson <ae@op5.se> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
diff --git a/src/revwalk.c b/src/revwalk.c
index 91822c5..81d3ab6 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -23,14 +23,9 @@
* Boston, MA 02110-1301, USA.
*/
-#include "git/revwalk.h"
-#include <stdlib.h>
+#include "revwalk.h"
-struct git_revpool {
- git_odb *db;
-};
-
-git_revpool *git_revpool_alloc(git_odb *db)
+git_revpool *gitrp_alloc(git_odb *db)
{
git_revpool *walk = malloc(sizeof(*walk));
if (!walk)
@@ -40,7 +35,7 @@ git_revpool *git_revpool_alloc(git_odb *db)
return walk;
}
-void git_revpool_free(git_revpool *walk)
+void gitrp_free(git_revpool *walk)
{
free(walk);
}
diff --git a/src/revwalk.h b/src/revwalk.h
new file mode 100644
index 0000000..dea66ba
--- /dev/null
+++ b/src/revwalk.h
@@ -0,0 +1,12 @@
+#ifndef INCLUDE_revwalk_h__
+#define INCLUDE_revwalk_h__
+
+#include "git/common.h"
+#include "git/revwalk.h"
+#include <stdlib.h>
+
+struct git_revpool {
+ git_odb *db;
+};
+
+#endif /* INCLUDE_revwalk_h__ */