diff --git a/src/config.h b/src/config.h index 5475ef384..4e451a23f 100644 --- a/src/config.h +++ b/src/config.h @@ -24,6 +24,7 @@ struct git_config { }; extern int git_config_find_global_r(git_buf *global_config_path); +extern int git_config_find_xdr_r(git_buf *system_config_path); extern int git_config_find_system_r(git_buf *system_config_path); extern int git_config_parse_bool(int *out, const char *bool_string); diff --git a/src/fileops.c b/src/fileops.c index 2bdea91c7..cbc7419e0 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -469,7 +469,7 @@ nullterm: return (orgsrc != src) ? (wchar_t *)src : NULL; } -int win32_find_system_file_using_path(git_buf *path, const char *filename) +static int win32_find_system_file_using_path(git_buf *path, const char *filename) { wchar_t * env = NULL; struct win32_path root; @@ -502,7 +502,7 @@ int win32_find_system_file_using_path(git_buf *path, const char *filename) return GIT_ENOTFOUND; } -int win32_find_system_file_using_registry(git_buf *path, const char *filename) +static int win32_find_system_file_using_registry(git_buf *path, const char *filename) { #ifndef _WIN64 #define REG_MSYSGIT_INSTALL L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Git_is1"