summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compat/unsetenv.c4
-rw-r--r--git-compat-util.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/compat/unsetenv.c b/compat/unsetenv.c
index bf5fd7063b..b9d34af613 100644
--- a/compat/unsetenv.c
+++ b/compat/unsetenv.c
@@ -1,6 +1,6 @@
#include "../git-compat-util.h"
-void gitunsetenv (const char *name)
+int gitunsetenv(const char *name)
{
#if !defined(__MINGW32__)
extern char **environ;
@@ -24,4 +24,6 @@ void gitunsetenv (const char *name)
++dst;
}
environ[dst] = NULL;
+
+ return 0;
}
diff --git a/git-compat-util.h b/git-compat-util.h
index b46605300a..0f7e369a5d 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -726,7 +726,7 @@ char *gitmkdtemp(char *);
#ifdef NO_UNSETENV
#define unsetenv gitunsetenv
-void gitunsetenv(const char *);
+int gitunsetenv(const char *);
#endif
#ifdef NO_STRCASESTR