diff options
Diffstat (limited to 'src/filebuf.h')
-rw-r--r-- | src/filebuf.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/filebuf.h b/src/filebuf.h index 044af5405..2bd18dc35 100644 --- a/src/filebuf.h +++ b/src/filebuf.h @@ -25,11 +25,12 @@ #define GIT_FILELOCK_EXTENSION ".lock\0" #define GIT_FILELOCK_EXTLENGTH 6 +typedef struct git_filebuf git_filebuf; struct git_filebuf { char *path_original; char *path_lock; - int (*write)(struct git_filebuf *file, void *source, size_t len); + int (*write)(git_filebuf *file, void *source, size_t len); bool compute_digest; git_hash_ctx digest; @@ -47,8 +48,6 @@ struct git_filebuf { int last_error; }; -typedef struct git_filebuf git_filebuf; - #define GIT_FILEBUF_INIT {0} /* |