setenv is in the C library.
* forward.c: Provide setenv prototype if needed.
* auth.c (auth_name): Cast result of sizeof() to int to match
printf format specification.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13580
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-07-06 Ezra Peisach <epeisach@mit.edu>
+
+ * configure.in: Check for need to provide setenv prototype if
+ setenv is in the C library.
+
+ * forward.c: Provide setenv prototype if needed.
+
+ * auth.c (auth_name): Cast result of sizeof() to int to match
+ printf format specification.
+
2001-07-05 Ezra Peisach <epeisach@mit.edu>
* encrypt.c (encrypt_reply): Cast arguments to printf to match
if (cnt > sizeof(savename) - 1) {
if (auth_debug_mode)
printf(">>>%s: Name in NAME (%d) exceeds %d length\r\n",
- Name, cnt, sizeof(savename)-1);
+ Name, cnt, (int) sizeof(savename)-1);
return;
}
memcpy((void *)savename, (void *)data, cnt);
LIBOBJS="$LIBOBJS setenv.o"
AC_DEFINE([NEED_SETENV])
fi
+dnl
+KRB5_NEED_PROTO([#include <stdlib.h>],setenv)
AC_C_CONST
if test "$KRB4_LIB" = ''; then
AC_MSG_RESULT(No Kerberos 4 authentication)
#include "k5-int.h"
#include "krb5forw.h"
-#ifdef NEED_SETENV
+#if defined(NEED_SETENV) || defined(NEED_SETENV_PROTO)
extern int setenv(char *, char *, int);
#endif