Return typed pointers from rpmluaFree() and rpmluavFree()

This commit is contained in:
Panu Matilainen 2010-09-21 14:22:29 +03:00
parent ee6c33c9c2
commit a43c15eadf
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);