Check for stdlib.h, include stdlib.h, string.h, cast to handle gcc warning
authorEzra Peisach <epeisach@mit.edu>
Tue, 23 Jan 1996 18:26:09 +0000 (18:26 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 23 Jan 1996 18:26:09 +0000 (18:26 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7371 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/configure.in
src/lib/gssapi/krb5/init_sec_context.c
src/lib/gssapi/krb5/pname_to_uid.c

index 6646e8bcbe01531d95bb4ce85c97553f727db99b..ded46b1d2a2dfa4e25b1d872b0b7501f86d68ea9 100644 (file)
@@ -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
index 9bd6967c3c68015f92d7742a1fade768b5469bf4..7b755b498e1f0b91b251a1b19469c70df1d9da9a 100644 (file)
@@ -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
index 4ccc4a3babaa0aa74e94bd0bc6c47f9856c63c05..d12f99cbe47d21c5e2e6739157b6d73c1765af0d 100644 (file)
@@ -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)
index 619b4657ca65f20c891040dcefb0d9f949ab7df2..8cd20d23a9aa6f38974116422d321c7f29683e42 100644 (file)
@@ -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>