mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-05 07:29:21 +00:00
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>
This commit is contained in:
parent
3e1d42b7d9
commit
c215be4120
@ -23,14 +23,9 @@
|
|||||||
* Boston, MA 02110-1301, USA.
|
* Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "git/revwalk.h"
|
#include "revwalk.h"
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
struct git_revpool {
|
git_revpool *gitrp_alloc(git_odb *db)
|
||||||
git_odb *db;
|
|
||||||
};
|
|
||||||
|
|
||||||
git_revpool *git_revpool_alloc(git_odb *db)
|
|
||||||
{
|
{
|
||||||
git_revpool *walk = malloc(sizeof(*walk));
|
git_revpool *walk = malloc(sizeof(*walk));
|
||||||
if (!walk)
|
if (!walk)
|
||||||
@ -40,7 +35,7 @@ git_revpool *git_revpool_alloc(git_odb *db)
|
|||||||
return walk;
|
return walk;
|
||||||
}
|
}
|
||||||
|
|
||||||
void git_revpool_free(git_revpool *walk)
|
void gitrp_free(git_revpool *walk)
|
||||||
{
|
{
|
||||||
free(walk);
|
free(walk);
|
||||||
}
|
}
|
||||||
|
12
src/revwalk.h
Normal file
12
src/revwalk.h
Normal file
@ -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__ */
|
Loading…
Reference in New Issue
Block a user