(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
+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
-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= \
clean-unix::
$(RM) $(OBJS)
+clean-mac::
+ $(RM) $(OBJS)
+
clean-windows::
$(RM) *.obj
*/
#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;
AC_SET_BUILDTOP
SubdirLibraryRule([${OBJS}])
KRB_INCLUDE
-WITH_KRB5ROOT
V5_AC_OUTPUT_MAKEFILE
#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