diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-03-14 11:30:34 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-03-14 11:35:37 +0200 |
commit | ff0eed0552d646d5efebb58468e3cf478437db47 (patch) | |
tree | eb59306869ad7d600e9171151688e4b5b0ed07be /rpmio/rpmlua.c | |
parent | 1e318f557c0f8b8296f0263afa3a444b9b9d7f22 (diff) | |
download | librpm-tizen-ff0eed0552d646d5efebb58468e3cf478437db47.tar.gz librpm-tizen-ff0eed0552d646d5efebb58468e3cf478437db47.tar.bz2 librpm-tizen-ff0eed0552d646d5efebb58468e3cf478437db47.zip |
Unbreak lua's base64 encode/decode extensions
- Commit 70f063cb773bedb7d336429d9bc8ed1d4e5d18f4 accidentally
changed lua's base64 encode/decode interface too, ugh. Dangers of
search-and-replace... Only the function name string exported to
lua matters but renaming the internal functions back as well
for naming consistency.
Diffstat (limited to 'rpmio/rpmlua.c')
-rw-r--r-- | rpmio/rpmlua.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmio/rpmlua.c b/rpmio/rpmlua.c index 441d062da..319c0d020 100644 --- a/rpmio/rpmlua.c +++ b/rpmio/rpmlua.c @@ -588,7 +588,7 @@ void rpmluaInteractive(rpmlua _lua) /* ------------------------------------------------------------------ */ /* Lua API */ -static int rpm_rpmBase64Encode(lua_State *L) +static int rpm_b64encode(lua_State *L) { const char *str = luaL_checkstring(L, 1); size_t len = lua_strlen(L, 1); @@ -603,7 +603,7 @@ static int rpm_rpmBase64Encode(lua_State *L) return 1; } -static int rpm_rpmBase64Decode(lua_State *L) +static int rpm_b64decode(lua_State *L) { const char *str = luaL_checkstring(L, 1); if (str) { @@ -823,8 +823,8 @@ static int rpm_print (lua_State *L) } static const luaL_reg rpmlib[] = { - {"rpmBase64Encode", rpm_rpmBase64Encode}, - {"rpmBase64Decode", rpm_rpmBase64Decode}, + {"b64encode", rpm_b64encode}, + {"b64decode", rpm_b64decode}, {"expand", rpm_expand}, {"define", rpm_define}, {"register", rpm_register}, |