summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/argv.c12
-rw-r--r--rpmio/macro.c12
-rw-r--r--rpmio/rpmio.c12
-rw-r--r--rpmio/rpmlog.c12
-rw-r--r--rpmio/rpmpgp.c12
-rw-r--r--rpmio/rpmrpc.c13
-rw-r--r--rpmio/url.c12
7 files changed, 0 insertions, 85 deletions
diff --git a/rpmio/argv.c b/rpmio/argv.c
index d112dfbc2..64cfd64c2 100644
--- a/rpmio/argv.c
+++ b/rpmio/argv.c
@@ -8,18 +8,6 @@
#include "debug.h"
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @return NULL always
- */
-static inline
-void * _free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
void argvPrint(const char * msg, ARGV_t argv, FILE * fp)
{
ARGV_t av;
diff --git a/rpmio/macro.c b/rpmio/macro.c
index 7d6b89208..fd18b2473 100644
--- a/rpmio/macro.c
+++ b/rpmio/macro.c
@@ -90,18 +90,6 @@ int print_expand_trace = _PRINT_EXPAND_TRACE;
/* forward ref */
static int expandMacro(MacroBuf mb);
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @retval NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
/* =============================================================== */
/**
diff --git a/rpmio/rpmio.c b/rpmio/rpmio.c
index f7ab21d6f..a565c6471 100644
--- a/rpmio/rpmio.c
+++ b/rpmio/rpmio.c
@@ -70,18 +70,6 @@ int noLibio = 1;
*/
int _rpmio_debug = 0;
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @retval NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
/* =============================================================== */
static const char * fdbg(FD_t fd)
diff --git a/rpmio/rpmlog.c b/rpmio/rpmlog.c
index ed2091ee9..06710add9 100644
--- a/rpmio/rpmlog.c
+++ b/rpmio/rpmlog.c
@@ -23,18 +23,6 @@
static int nrecs = 0;
static rpmlogRec recs = NULL;
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @retval NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
int rpmlogGetNrecs(void)
{
return nrecs;
diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c
index 353f826da..1335d31cb 100644
--- a/rpmio/rpmpgp.c
+++ b/rpmio/rpmpgp.c
@@ -173,18 +173,6 @@ struct pgpValTbl_s pgpArmorKeyTbl[] = {
{ -1, "Unknown armor key" }
};
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @return NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
static void pgpPrtNL(void)
{
if (!_print) return;
diff --git a/rpmio/rpmrpc.c b/rpmio/rpmrpc.c
index 3e639a262..6bf1fb28c 100644
--- a/rpmio/rpmrpc.c
+++ b/rpmio/rpmrpc.c
@@ -13,19 +13,6 @@
#include "ugid.h"
#include "debug.h"
-
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @retval NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
/* =============================================================== */
int Mkdir (const char * path, mode_t mode)
{
diff --git a/rpmio/url.c b/rpmio/url.c
index 8f5e8583a..1cc845581 100644
--- a/rpmio/url.c
+++ b/rpmio/url.c
@@ -31,18 +31,6 @@ int _url_debug = 0;
#define URLDBG(_f, _m, _x) if ((_url_debug | (_f)) & (_m)) fprintf _x
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @retval NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
urlinfo urlNew()
{
urlinfo u;