summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-21 14:22:29 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-21 14:22:29 +0300
commita43c15eadfbf18dd4df8d21415f1ef1a7c11f432 (patch)
treec3980f0b1198205dcadd877a1b89119a751732b1 /rpmio
parentee6c33c9c27406ae7fa90d7ea09b7bf1667c30db (diff)
downloadlibrpm-tizen-a43c15eadfbf18dd4df8d21415f1ef1a7c11f432.tar.gz
librpm-tizen-a43c15eadfbf18dd4df8d21415f1ef1a7c11f432.tar.bz2
librpm-tizen-a43c15eadfbf18dd4df8d21415f1ef1a7c11f432.zip
Return typed pointers from rpmluaFree() and rpmluavFree()
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/rpmlua.c4
-rw-r--r--rpmio/rpmlua.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/rpmio/rpmlua.c b/rpmio/rpmlua.c
index bd94effd8..22a2fc027 100644
--- a/rpmio/rpmlua.c
+++ b/rpmio/rpmlua.c
@@ -79,7 +79,7 @@ rpmlua rpmluaNew()
return lua;
}
-void *rpmluaFree(rpmlua lua)
+rpmlua rpmluaFree(rpmlua lua)
{
if (lua) {
if (lua->L) lua_close(lua->L);
@@ -337,7 +337,7 @@ rpmluav rpmluavNew(void)
return var;
}
-void *rpmluavFree(rpmluav var)
+rpmluav rpmluavFree(rpmluav var)
{
free(var);
return NULL;
diff --git a/rpmio/rpmlua.h b/rpmio/rpmlua.h
index 12b0fa12a..49f5bf639 100644
--- a/rpmio/rpmlua.h
+++ b/rpmio/rpmlua.h
@@ -43,7 +43,7 @@ typedef struct rpmlua_s * rpmlua;
typedef struct rpmluav_s * rpmluav;
rpmlua rpmluaNew(void);
-void *rpmluaFree(rpmlua lua);
+rpmlua rpmluaFree(rpmlua lua);
rpmlua rpmluaGetGlobalState(void);
int rpmluaCheckScript(rpmlua lua, const char *script,
@@ -67,7 +67,7 @@ void rpmluaPushTable(rpmlua lua, const char *key, ...);
void rpmluaPop(rpmlua lua);
rpmluav rpmluavNew(void);
-void * rpmluavFree(rpmluav var);
+rpmluav rpmluavFree(rpmluav var);
void rpmluavSetListMode(rpmluav var, int flag);
void rpmluavSetKey(rpmluav var, rpmluavType type, const void *value);
void rpmluavSetValue(rpmluav var, rpmluavType type, const void *value);