diff options
author | Ezra Peisach <epeisach@mit.edu> | 1996-01-23 18:26:09 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 1996-01-23 18:26:09 +0000 |
commit | cc9a8f5ce037e1edd1a95fea1531f652bbbd3a69 (patch) | |
tree | c583153478e615990544a8ef837219fb488970ac /src/lib | |
parent | 326e5c6df077c84734a68999fb210191f11f8997 (diff) | |
download | krb5-cc9a8f5ce037e1edd1a95fea1531f652bbbd3a69.tar.gz krb5-cc9a8f5ce037e1edd1a95fea1531f652bbbd3a69.tar.xz krb5-cc9a8f5ce037e1edd1a95fea1531f652bbbd3a69.zip |
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
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/gssapi/krb5/ChangeLog | 8 | ||||
-rw-r--r-- | src/lib/gssapi/krb5/configure.in | 1 | ||||
-rw-r--r-- | src/lib/gssapi/krb5/init_sec_context.c | 2 | ||||
-rw-r--r-- | src/lib/gssapi/krb5/pname_to_uid.c | 4 |
4 files changed, 14 insertions, 1 deletions
diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 6646e8bcbe..ded46b1d2a 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 <epeisach@kangaroo.mit.edu> + + * 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 <tytso@rsts-11.mit.edu> * 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 9bd6967c3c..7b755b498e 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 4ccc4a3bab..d12f99cbe4 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 619b4657ca..8cd20d23a9 100644 --- a/src/lib/gssapi/krb5/pname_to_uid.c +++ b/src/lib/gssapi/krb5/pname_to_uid.c @@ -6,6 +6,10 @@ */ #include <gssapi/gssapi.h> +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif +#include <string.h> #include <pwd.h> #include <sys/types.h> |