summaryrefslogtreecommitdiffstats
path: root/buffer.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-08-28 20:44:07 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-11-14 22:09:42 +0100
commitcc88a2695f4a54e27143efeae62de24fec8e26a1 (patch)
tree750bb1b66d8d3030fc0ad68767b6b2d7fc506cd2 /buffer.c
parent7aa6c12a4424d00ea0add0a849f8a5b31a2de6a1 (diff)
downloadopenvpn-cc88a2695f4a54e27143efeae62de24fec8e26a1.tar.gz
openvpn-cc88a2695f4a54e27143efeae62de24fec8e26a1.tar.xz
openvpn-cc88a2695f4a54e27143efeae62de24fec8e26a1.zip
Clean-up: Remove more dead and inactive code paths
These code paths was practically not needed with no locking mechanisms enabled and was just bloating the source code. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net> Acked-by: James Yonan <james@openvpn.net>
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/buffer.c b/buffer.c
index e9ae21a..729495c 100644
--- a/buffer.c
+++ b/buffer.c
@@ -298,10 +298,8 @@ gc_malloc (size_t size, bool clear, struct gc_arena *a)
#endif
check_malloc_return (e);
ret = (char *) e + sizeof (struct gc_entry);
- /*mutex_lock_static (L_GC_MALLOC);*/
e->next = a->list;
a->list = e;
- /*mutex_unlock_static (L_GC_MALLOC);*/
}
else
{
@@ -323,10 +321,8 @@ void
x_gc_free (struct gc_arena *a)
{
struct gc_entry *e;
- /*mutex_lock_static (L_GC_MALLOC);*/
e = a->list;
a->list = NULL;
- /*mutex_unlock_static (L_GC_MALLOC);*/
while (e != NULL)
{