svn commit: lorikeet r88 - in trunk/heimdal/lib/roken: .

abartlet at samba.org abartlet at samba.org
Mon Oct 4 01:17:25 GMT 2004


Author: abartlet
Date: 2004-10-04 01:17:24 +0000 (Mon, 04 Oct 2004)
New Revision: 88

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=lorikeet&path=/trunk/heimdal/lib/roken&rev=88&nolog=1

Log:
Remove memdup(), as lha replaced the code I had using it.

Andrew Bartlett

Removed:
   trunk/heimdal/lib/roken/memdup.c
Modified:
   trunk/heimdal/lib/roken/Makefile.am
   trunk/heimdal/lib/roken/roken.h.in


Changeset:
Modified: trunk/heimdal/lib/roken/Makefile.am
===================================================================
--- trunk/heimdal/lib/roken/Makefile.am	2004-10-04 00:27:47 UTC (rev 87)
+++ trunk/heimdal/lib/roken/Makefile.am	2004-10-04 01:17:24 UTC (rev 88)
@@ -62,7 +62,6 @@
 	k_getpwnam.c		\
 	k_getpwuid.c		\
 	mini_inetd.c		\
-	memdup.c		\
 	net_read.c		\
 	net_write.c		\
 	parse_bytes.c		\

Deleted: trunk/heimdal/lib/roken/memdup.c
===================================================================
--- trunk/heimdal/lib/roken/memdup.c	2004-10-04 00:27:47 UTC (rev 87)
+++ trunk/heimdal/lib/roken/memdup.c	2004-10-04 01:17:24 UTC (rev 88)
@@ -1,63 +0,0 @@
-/*
- * Copyright (c) Andrew Barltett <abarlet at samba.org> 2004
- * All rights reserved.
- * 
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 
- * 3. Neither the name of the Institute nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-RCSID("$Id: memdup.h $");
-#endif
-
-#include "roken.h"
-
-/* 
- * memdup for systems that doesn't have it 
- */
-
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-void *memdup(const void *s2, size_t n)
-{
-    void *ret = malloc(n);
-    if (ret) 
-	memcpy(ret, s2, n);
-	
-    return ret;
-}

Modified: trunk/heimdal/lib/roken/roken.h.in
===================================================================
--- trunk/heimdal/lib/roken/roken.h.in	2004-10-04 00:27:47 UTC (rev 87)
+++ trunk/heimdal/lib/roken/roken.h.in	2004-10-04 01:17:24 UTC (rev 88)
@@ -414,8 +414,6 @@
 
 int issuid(void);
 
-void *memdup(const void *ptr, size_t bytes);
-
 time_t ntstring2unixtime(const char *nt_time);
 
 time_t nt2unixtime(long long t);



More information about the samba-cvs mailing list