diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-11-30 02:41:48 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-11-30 02:41:48 +0300 |
commit | 0ae87432aa7bbc18664d4f68306e121a2db8a91d (patch) | |
tree | 24f772fdaca82e5a32d10ceab48f37a637c4e910 /git-compat-util.h | |
parent | 5126145ba8e8327b41e2fc235351645e0eb959da (diff) | |
parent | a38989bd5bc850900667ae1b3c0cd43797b066f0 (diff) |
Merge branch 'jc/unsetenv-returns-an-int'
The compatibility implementation for unsetenv(3) were written to
mimic ancient, non-POSIX, variant seen in an old glibc; it has been
changed to return an integer to match the more modern era.
* jc/unsetenv-returns-an-int:
unsetenv(3) returns int, not void
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index d70ce14286..7176a43381 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -729,7 +729,7 @@ char *gitmkdtemp(char *); #ifdef NO_UNSETENV #define unsetenv gitunsetenv -void gitunsetenv(const char *); +int gitunsetenv(const char *); #endif #ifdef NO_STRCASESTR |