]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
Removed unused clalloc() function
authorTobias Brunner <tobias@strongswan.org>
Thu, 28 Mar 2013 10:03:26 +0000 (11:03 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 11 Jun 2013 09:03:12 +0000 (11:03 +0200)
src/libstrongswan/utils/utils.c
src/libstrongswan/utils/utils.h

index 2f38d8a9333104f322b9cdc43eeb35a1da0f3d27..ba32720ea2e7895d09c6f9cd45c7bbde28cc0b5c 100644 (file)
@@ -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.
  */
index 8637c3c82df43d8f84d7066813c14cf586965370..ff1a007c11976adee1bb292cea197921a5ea23bb 100644 (file)
@@ -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
  */