summaryrefslogtreecommitdiff
path: root/src/win32
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2013-06-29 12:48:58 +0200
committernulltoken <emeric.fermas@gmail.com>2013-06-29 13:27:55 +0200
commitc4ac556ee7171ee206e11687907d5dbee3ce0a6d (patch)
treedefe10a5a0eaa881d3bdbbc10c667f5a9bd10c1e /src/win32
parentf2c41884c3082984f51743d557644cfa2136b878 (diff)
downloadlibgit2-c4ac556ee7171ee206e11687907d5dbee3ce0a6d.tar.gz
Fix compilation warnings
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/findfile.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/win32/findfile.c b/src/win32/findfile.c
index 5dd3de13d..9d9051bff 100644
--- a/src/win32/findfile.c
+++ b/src/win32/findfile.c
@@ -156,7 +156,7 @@ static int win32_find_git_in_registry(
}
static int win32_find_existing_dirs(
- git_buf *out, const wchar_t *tmpl[], char *temp[])
+ git_buf *out, const wchar_t *tmpl[])
{
struct git_win32__path path16;
git_buf buf = GIT_BUF_INIT;
@@ -209,7 +209,6 @@ int git_win32__find_system_dirs(git_buf *out)
int git_win32__find_global_dirs(git_buf *out)
{
- char *temp[3];
static const wchar_t *global_tmpls[4] = {
L"%HOME%\\",
L"%HOMEDRIVE%%HOMEPATH%\\",
@@ -217,12 +216,11 @@ int git_win32__find_global_dirs(git_buf *out)
NULL,
};
- return win32_find_existing_dirs(out, global_tmpls, temp);
+ return win32_find_existing_dirs(out, global_tmpls);
}
int git_win32__find_xdg_dirs(git_buf *out)
{
- char *temp[6];
static const wchar_t *global_tmpls[7] = {
L"%XDG_CONFIG_HOME%\\git",
L"%APPDATA%\\git",
@@ -233,5 +231,5 @@ int git_win32__find_xdg_dirs(git_buf *out)
NULL,
};
- return win32_find_existing_dirs(out, global_tmpls, temp);
+ return win32_find_existing_dirs(out, global_tmpls);
}