diff options
author | beck <> | 2014-04-17 13:37:50 +0000 |
---|---|---|
committer | beck <> | 2014-04-17 13:37:50 +0000 |
commit | bddb7c686e3d1aeb156722adc64b6c35ae720f87 (patch) | |
tree | 7595a93a27385c367802aa17ecf20f96551cf14d /src/lib/libcrypto/pqueue/pqueue.c | |
parent | ecec66222d758996a4ff2671ca5026d9ede5ef76 (diff) | |
download | openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.tar.gz openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.tar.bz2 openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.zip |
Change library to use intrinsic memory allocation functions instead of
OPENSSL_foo wrappers. This changes:
OPENSSL_malloc->malloc
OPENSSL_free->free
OPENSSL_relloc->realloc
OPENSSL_freeFunc->free
Diffstat (limited to 'src/lib/libcrypto/pqueue/pqueue.c')
-rw-r--r-- | src/lib/libcrypto/pqueue/pqueue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/pqueue/pqueue.c b/src/lib/libcrypto/pqueue/pqueue.c index eab13a1250..3ca8e049e4 100644 --- a/src/lib/libcrypto/pqueue/pqueue.c +++ b/src/lib/libcrypto/pqueue/pqueue.c | |||
@@ -70,7 +70,7 @@ typedef struct _pqueue | |||
70 | pitem * | 70 | pitem * |
71 | pitem_new(unsigned char *prio64be, void *data) | 71 | pitem_new(unsigned char *prio64be, void *data) |
72 | { | 72 | { |
73 | pitem *item = (pitem *) OPENSSL_malloc(sizeof(pitem)); | 73 | pitem *item = (pitem *) malloc(sizeof(pitem)); |
74 | if (item == NULL) return NULL; | 74 | if (item == NULL) return NULL; |
75 | 75 | ||
76 | memcpy(item->priority,prio64be,sizeof(item->priority)); | 76 | memcpy(item->priority,prio64be,sizeof(item->priority)); |
@@ -86,13 +86,13 @@ pitem_free(pitem *item) | |||
86 | { | 86 | { |
87 | if (item == NULL) return; | 87 | if (item == NULL) return; |
88 | 88 | ||
89 | OPENSSL_free(item); | 89 | free(item); |
90 | } | 90 | } |
91 | 91 | ||
92 | pqueue_s * | 92 | pqueue_s * |
93 | pqueue_new() | 93 | pqueue_new() |
94 | { | 94 | { |
95 | pqueue_s *pq = (pqueue_s *) OPENSSL_malloc(sizeof(pqueue_s)); | 95 | pqueue_s *pq = (pqueue_s *) malloc(sizeof(pqueue_s)); |
96 | if (pq == NULL) return NULL; | 96 | if (pq == NULL) return NULL; |
97 | 97 | ||
98 | memset(pq, 0x00, sizeof(pqueue_s)); | 98 | memset(pq, 0x00, sizeof(pqueue_s)); |
@@ -104,7 +104,7 @@ pqueue_free(pqueue_s *pq) | |||
104 | { | 104 | { |
105 | if (pq == NULL) return; | 105 | if (pq == NULL) return; |
106 | 106 | ||
107 | OPENSSL_free(pq); | 107 | free(pq); |
108 | } | 108 | } |
109 | 109 | ||
110 | pitem * | 110 | pitem * |