diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 14:22:29 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-21 14:22:29 +0300 |
commit | a43c15eadfbf18dd4df8d21415f1ef1a7c11f432 (patch) | |
tree | c3980f0b1198205dcadd877a1b89119a751732b1 /rpmio | |
parent | ee6c33c9c27406ae7fa90d7ea09b7bf1667c30db (diff) | |
download | librpm-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.c | 4 | ||||
-rw-r--r-- | rpmio/rpmlua.h | 4 |
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); |