mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 18:22:16 +00:00
Change usages of static inline to GIT_INLINE
Signed-off-by: Julio Espinoza-Sokal <julioes@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
6f6a17db05
commit
213e720ca8
@ -4,13 +4,13 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
/* convenience functions */
|
||||
static inline int git_int_error(int code)
|
||||
GIT_INLINE(int) git_int_error(int code)
|
||||
{
|
||||
git_errno = code;
|
||||
return code;
|
||||
}
|
||||
|
||||
static inline void *git_ptr_error(int code)
|
||||
GIT_INLINE(void) *git_ptr_error(int code)
|
||||
{
|
||||
git_errno = code;
|
||||
return NULL;
|
||||
|
@ -113,7 +113,7 @@ gitfo_cache *gitfo_enable_caching(git_file fd, size_t cache_size)
|
||||
return ioc;
|
||||
}
|
||||
|
||||
static inline void gitfo_add_to_cache(gitfo_cache *ioc, void *buf, size_t len)
|
||||
GIT_INLINE(void) gitfo_add_to_cache(gitfo_cache *ioc, void *buf, size_t len)
|
||||
{
|
||||
memcpy(ioc->cache + ioc->pos, buf, len);
|
||||
ioc->pos += len;
|
||||
|
Loading…
Reference in New Issue
Block a user