From: Tobias Brunner Date: Thu, 28 Mar 2013 10:03:26 +0000 (+0100) Subject: Removed unused clalloc() function X-Git-Tag: 5.1.0dr1~129^2~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=438a6693ca54a782342f27f30faa667a4e6612cc;p=thirdparty%2Fstrongswan.git Removed unused clalloc() function --- diff --git a/src/libstrongswan/utils/utils.c b/src/libstrongswan/utils/utils.c index 2f38d8a933..ba32720ea2 100644 --- a/src/libstrongswan/utils/utils.c +++ b/src/libstrongswan/utils/utils.c @@ -45,19 +45,6 @@ ENUM(status_names, SUCCESS, NEED_MORE, "NEED_MORE", ); -/** - * Described in header. - */ -void *clalloc(void * pointer, size_t size) -{ - void *data; - data = malloc(size); - - memcpy(data, pointer, size); - - return (data); -} - /** * Described in header. */ diff --git a/src/libstrongswan/utils/utils.h b/src/libstrongswan/utils/utils.h index 8637c3c82d..ff1a007c11 100644 --- a/src/libstrongswan/utils/utils.h +++ b/src/libstrongswan/utils/utils.h @@ -375,11 +375,6 @@ typedef struct timespec timespec_t; */ typedef struct sockaddr sockaddr_t; -/** - * Clone a data to a newly allocated buffer - */ -void *clalloc(void *pointer, size_t size); - /** * Same as memcpy, but XORs src into dst instead of copy */