Skip to content

Commit a5af476

Browse files
committed
fix: Add missing argument fromm git_config_backend, fix function names
1 parent d877928 commit a5af476

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libgit2-sys/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pub struct git_config_backend {
102102
pub snapshot:
103103
Option<extern "C" fn(*mut *mut git_config_backend, *mut git_config_backend) -> c_int>,
104104
pub lock: Option<extern "C" fn(*mut git_config_backend) -> c_int>,
105-
pub unlock: Option<extern "C" fn(*mut git_config_backend) -> c_int>,
105+
pub unlock: Option<extern "C" fn(*mut git_config_backend, c_int) -> c_int>,
106106
pub free: Option<extern "C" fn(*mut git_config_backend)>,
107107
}
108108

@@ -3244,13 +3244,13 @@ extern "C" {
32443244
repo: *const git_repository,
32453245
force: c_int,
32463246
) -> c_int;
3247-
pub fn git_config_backend_backend_from_string(
3247+
pub fn git_config_backend_from_string(
32483248
out: *mut *mut git_config_backend,
32493249
cfg: *const c_char,
32503250
len: size_t,
32513251
opts: *mut git_config_backend_memory_options,
32523252
) -> c_int;
3253-
pub fn git_config_backend_backend_from_values(
3253+
pub fn git_config_backend_from_values(
32543254
out: *mut *mut git_config_backend,
32553255
values: *mut *const c_char,
32563256
len: size_t,

0 commit comments

Comments
 (0)