[PATCH] getdomainname should be usable on SunOS with -lnsl
[gitweb.git] / ident.c
diff --git a/ident.c b/ident.c
index 0fe81f6900dcb6951539c050f1398b1d4b208ea6..a2d241fba025f82fa4c77aeb345103db66168fa9 100644 (file)
--- a/ident.c
+++ b/ident.c
@@ -41,7 +41,6 @@ int setup_ident(void)
                real_email[len++] = '.';
                getdomainname(real_email+len, sizeof(real_email)-len);
        }
-
        /* And set the default date */
        datestamp(real_date, sizeof(real_date));
        return 0;
@@ -149,10 +148,10 @@ char *get_ident(const char *name, const char *email, const char *date_str)
 
 char *git_author_info(void)
 {
-       return get_ident(gitenv("GIT_AUTHOR_NAME"), gitenv("GIT_AUTHOR_EMAIL"), gitenv("GIT_AUTHOR_DATE"));
+       return get_ident(getenv("GIT_AUTHOR_NAME"), getenv("GIT_AUTHOR_EMAIL"), getenv("GIT_AUTHOR_DATE"));
 }
 
 char *git_committer_info(void)
 {
-       return get_ident(gitenv("GIT_COMMITTER_NAME"), gitenv("GIT_COMMITTER_EMAIL"), gitenv("GIT_COMMITTER_DATE"));
+       return get_ident(getenv("GIT_COMMITTER_NAME"), getenv("GIT_COMMITTER_EMAIL"), getenv("GIT_COMMITTER_DATE"));
 }