Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=e7de5bf8e9243cc9dc91570ea077d79239bfc136

commit e7de5bf8e9243cc9dc91570ea077d79239bfc136
Author: Michel Hermier <[email protected]>
Date:   Wed May 15 12:05:45 2013 +0200

libflib: Add f_free.

diff --git a/lib/libflib/fstdlib.c b/lib/libflib/fstdlib.c
index 7804864..19b7f8d 100644
--- a/lib/libflib/fstdlib.c
+++ b/lib/libflib/fstdlib.c
@@ -23,6 +23,10 @@

#include "fstdlib.h"

+void f_free (void *ptr) {
+       free (ptr);
+}
+
void *f_malloc (size_t size)
{
void *ptr = malloc (size);
diff --git a/lib/libflib/fstdlib.h b/lib/libflib/fstdlib.h
index 374420a..84e7f11 100644
--- a/lib/libflib/fstdlib.h
+++ b/lib/libflib/fstdlib.h
@@ -23,12 +23,12 @@

#include <stdlib.h>

+void f_free (void *ptr);
void *f_malloc (size_t size);
+void *f_zalloc (size_t size);

void *f_memdup (const void *ptr, size_t size);

-void *f_zalloc (size_t size);
-
int f_ptrcmp (const void *p1, const void *p2);
int f_ptreq (const void *p1, const void *p2);
int f_ptrneq (const void *p1, const void *p2);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to