* The lock serves a purpose in addition to locking: the new
* contents of .git/config will be written into it.
*/
- fd = repo_hold_lock_file_for_update(r, &lock, config_filename, 0);
- fd = hold_lock_file_for_update_timeout(&lock, config_filename, 0,
- config_lock_timeout_ms(r));
++ fd = repo_hold_lock_file_for_update_timeout(r, &lock, config_filename, 0,
++ config_lock_timeout_ms(r));
if (fd < 0) {
error_errno(_("could not lock config file %s"), config_filename);
ret = CONFIG_NO_LOCK;
if (!config_filename)
config_filename = filename_buf = repo_git_path(r, "config");
- out_fd = repo_hold_lock_file_for_update(r, &lock, config_filename, 0);
- out_fd = hold_lock_file_for_update_timeout(&lock, config_filename, 0,
- config_lock_timeout_ms(r));
++ out_fd = repo_hold_lock_file_for_update_timeout(r, &lock,
++ config_filename, 0,
++ config_lock_timeout_ms(r));
if (out_fd < 0) {
ret = error(_("could not lock config file %s"), config_filename);
goto out;