summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--openbsd-compat/bsd-misc.h4
-rw-r--r--sshd.c2
3 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ed1c07cba..201f2cb1e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
120120215
2 - (tim) [openbsd-compat/bsd-misc.h sshd.c] Fix conflicting return type for
3 unsetenv due to rev 1.14 change to setenv.c. Cast unsetenv to void in sshd.c
4 ok dtucker@
5
120120214 620120214
2 - (djm) [openbsd-compat/bsd-cygwin_util.c] Add PROGRAMFILES to list of 7 - (djm) [openbsd-compat/bsd-cygwin_util.c] Add PROGRAMFILES to list of
3 preserved Cygwin environment variables; from Corinna Vinschen 8 preserved Cygwin environment variables; from Corinna Vinschen
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h
index e70c3f9e9..e37175625 100644
--- a/openbsd-compat/bsd-misc.h
+++ b/openbsd-compat/bsd-misc.h
@@ -1,4 +1,4 @@
1/* $Id: bsd-misc.h,v 1.19 2010/11/08 22:26:23 tim Exp $ */ 1/* $Id: bsd-misc.h,v 1.20 2012/02/14 18:03:31 tim Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1999-2004 Damien Miller <djm@mindrot.org> 4 * Copyright (c) 1999-2004 Damien Miller <djm@mindrot.org>
@@ -86,7 +86,7 @@ int tcsendbreak(int, int);
86#endif 86#endif
87 87
88#ifndef HAVE_UNSETENV 88#ifndef HAVE_UNSETENV
89void unsetenv(const char *); 89int unsetenv(const char *);
90#endif 90#endif
91 91
92/* wrapper for signal interface */ 92/* wrapper for signal interface */
diff --git a/sshd.c b/sshd.c
index c8d71f8fe..b63aaa428 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1511,7 +1511,7 @@ main(int ac, char **av)
1511 * root's environment 1511 * root's environment
1512 */ 1512 */
1513 if (getenv("KRB5CCNAME") != NULL) 1513 if (getenv("KRB5CCNAME") != NULL)
1514 unsetenv("KRB5CCNAME"); 1514 (void) unsetenv("KRB5CCNAME");
1515 1515
1516#ifdef _UNICOS 1516#ifdef _UNICOS
1517 /* Cray can define user privs drop all privs now! 1517 /* Cray can define user privs drop all privs now!