* Makefile.in: Remove redundant definitions from config/pre.in
authorJohn Gilmore <gnu@toad.com>
Sat, 18 Mar 1995 03:08:48 +0000 (03:08 +0000)
committerJohn Gilmore <gnu@toad.com>
Sat, 18 Mar 1995 03:08:48 +0000 (03:08 +0000)
(clean-mac):  Add.
* asn1_misc.c:  Avoid <malloc.h> and <memory.h> includes, for Mac.
(asn1_krb5_realm_copy):  Use malloc, not calloc, since we're
about to clobber the storage anyway.
* configure.in (WITH_KRB5ROOT):  Remove, not needed.
* krbasn1.h:  Document that <limits.h> is needed for INT_MAX.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5154 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/ChangeLog
src/lib/krb5/asn.1/Makefile.in
src/lib/krb5/asn.1/asn1_misc.c
src/lib/krb5/asn.1/configure.in
src/lib/krb5/asn.1/krbasn1.h

index 33f07a9c529c3c99f274f1df098412005dc47ae8..be09f397cbbf23a39d6db772f99adce8e60f4e75 100644 (file)
@@ -1,3 +1,13 @@
+Fri Mar 17 19:05:22 1995  John Gilmore  (gnu at toad.com)
+
+       * Makefile.in:  Remove redundant definitions from config/pre.in
+       (clean-mac):  Add.
+       * asn1_misc.c:  Avoid <malloc.h> and <memory.h> includes, for Mac.
+       (asn1_krb5_realm_copy):  Use malloc, not calloc, since we're
+       about to clobber the storage anyway.
+       * configure.in (WITH_KRB5ROOT):  Remove, not needed.
+       * krbasn1.h:  Document that <limits.h> is needed for INT_MAX.
+
 Fri Mar 10 15:39:24 1995  Theodore Y. Ts'o  (tytso@kenmore)
 
        * asn1buf.c. asn1buf.h (asn1buf_insert_octet): Make the second
index 19361ec6b4ebbd88d6662b199eedf6df8235f83e..24370fdd69aca84ea4a1a5b85a57cf1e1f729752 100644 (file)
@@ -1,26 +1,9 @@
-BUILDTOP=@BUILDTOP@
-srcdir = @srcdir@
-VPATH = @srcdir@
-
 CFLAGS=$(CCOPTS) $(DEFS)
-LDFLAGS = -g
-
-RM = rm -f
-CP = cp
 
 ##DOSBUILDTOP = ..\..\..
 ##DOSLIBNAME=..\krb5.lib
 ##DOS!include $(BUILDTOP)\config\windows.in
 
-PEPSY = @PEPSY@
-PSYFLAGS = @PSYFLAGS@
-
-KRB5ROOT = @KRB5ROOT@
-
-KRB5_INCDIR = $(KRB5ROOT)/include
-
-SRCTOP=$(srcdir)/$(BUILDTOP)
-
 EHDRDIR=$(BUILDTOP)/include/krb5/asn.1
 
 SRCS= \
@@ -54,5 +37,8 @@ clean:: clean-$(WHAT)
 clean-unix::
        $(RM) $(OBJS)
 
+clean-mac::
+       $(RM) $(OBJS)
+
 clean-windows::
        $(RM) *.obj
index 3231a6385c61901903f23949b1aac52e7eb2986e..eb6516a317e0003b354aacf55039f542dfb448d7 100644 (file)
  */
 
 #include "asn1_misc.h"
-#include <malloc.h>
-#include <memory.h>
 
 asn1_error_code INTERFACE asn1_krb5_realm_copy(target, source)
      krb5_principal target;
      krb5_principal source;
 {
   target->realm.length = source->realm.length;
-  target->realm.data = (char*)calloc(target->realm.length,
-                                         sizeof(char)); /* copy realm */
-  if(target->realm.data == NULL) return ENOMEM;
+  target->realm.data = (char*)malloc(target->realm.length); /* copy realm */
+  if (target->realm.data == NULL) return ENOMEM;
   memcpy(target->realm.data,source->realm.data, /* to client */
         target->realm.length);
   return 0;
index 328a01f3aa2ea5c21353d814fb54763d5d734c0b..11a547e4555ca64205b752f143dbb38ea7953016 100644 (file)
@@ -6,5 +6,4 @@ dnl CONFIG_RULES
 AC_SET_BUILDTOP
 SubdirLibraryRule([${OBJS}])
 KRB_INCLUDE
-WITH_KRB5ROOT
 V5_AC_OUTPUT_MAKEFILE
index faa76fde19379f79eff87da4e5eb77903a842d2f..eb63258fc55bdb00d81a4f91d417229a4c5124f4 100644 (file)
@@ -4,7 +4,7 @@
 #include "k5-int.h"
 #include <stdio.h>
 #include <errno.h>
-#include <limits.h>
+#include <limits.h>            /* For INT_MAX */
 #ifdef HAS_STDLIB_H
 #include <stdlib.h>
 #endif