From cc9a8f5ce037e1edd1a95fea1531f652bbbd3a69 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 23 Jan 1996 18:26:09 +0000 Subject: [PATCH] Check for stdlib.h, include stdlib.h, string.h, cast to handle gcc warning git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7371 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/ChangeLog | 8 ++++++++ src/lib/gssapi/krb5/configure.in | 1 + src/lib/gssapi/krb5/init_sec_context.c | 2 +- src/lib/gssapi/krb5/pname_to_uid.c | 4 ++++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 6646e8bcb..ded46b1d2 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,11 @@ +Tue Jan 23 13:01:42 1996 Ezra Peisach + + * configure.in: Check for stdlib.h + + * pname_to_uid.c: Include string.h and stdlib.h. + + * init_sec_context.c (make_ap_req): Handle gcc warning. + Tue Jan 23 04:05:23 1996 * Makefile.in: Add support for building GSSAPI as a shared diff --git a/src/lib/gssapi/krb5/configure.in b/src/lib/gssapi/krb5/configure.in index 9bd6967c3..7b755b498 100644 --- a/src/lib/gssapi/krb5/configure.in +++ b/src/lib/gssapi/krb5/configure.in @@ -1,6 +1,7 @@ AC_INIT(configure.in) CONFIG_RULES ET_RULES +AC_CHECK_HEADERS(stdlib.h) V5_SHARED_LIB_OBJS SubdirLibraryRule([${OBJS}]) V5_AC_OUTPUT_MAKEFILE diff --git a/src/lib/gssapi/krb5/init_sec_context.c b/src/lib/gssapi/krb5/init_sec_context.c index 4ccc4a3ba..d12f99cbe 100644 --- a/src/lib/gssapi/krb5/init_sec_context.c +++ b/src/lib/gssapi/krb5/init_sec_context.c @@ -191,7 +191,7 @@ make_ap_req(context, auth_context, cred, server, endtime, chan_bindings, code = 0; cleanup: - if (checksum_data.data && checksum_data.data != ckbuf) + if (checksum_data.data && checksum_data.data != (char *) ckbuf) free(checksum_data.data); krb5_free_cred_contents(context, &in_creds); if (out_creds) diff --git a/src/lib/gssapi/krb5/pname_to_uid.c b/src/lib/gssapi/krb5/pname_to_uid.c index 619b4657c..8cd20d23a 100644 --- a/src/lib/gssapi/krb5/pname_to_uid.c +++ b/src/lib/gssapi/krb5/pname_to_uid.c @@ -6,6 +6,10 @@ */ #include +#ifdef HAVE_STDLIB_H +#include +#endif +#include #include #include -- 2.26.2