summaryrefslogtreecommitdiff
path: root/src/lua-apk.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2020-02-04 10:31:10 +0200
committerTimo Teräs <timo.teras@iki.fi>2020-02-04 10:31:10 +0200
commit45d313c51cbae20bce0789db86ba82ff79c9b202 (patch)
treed144b6462d34c1ceeaf26fbc87902d515e346e0b /src/lua-apk.c
parent8fc403c582a725b667d0211f9ccd8a217d25c2fc (diff)
downloadapk-tools-45d313c51cbae20bce0789db86ba82ff79c9b202.tar.gz
apk-tools-45d313c51cbae20bce0789db86ba82ff79c9b202.tar.bz2
apk-tools-45d313c51cbae20bce0789db86ba82ff79c9b202.tar.xz
apk-tools-45d313c51cbae20bce0789db86ba82ff79c9b202.zip
remove apk_time() as it is causing problems with shared objects
Instead, to make sure test mode produces same output, redefine time() for the test mode binary. Reverts parts of 0b82bcc53e60.
Diffstat (limited to 'src/lua-apk.c')
-rw-r--r--src/lua-apk.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/lua-apk.c b/src/lua-apk.c
index 2f365b2..73c33e9 100644
--- a/src/lua-apk.c
+++ b/src/lua-apk.c
@@ -46,11 +46,6 @@ static int typerror (lua_State *L, int narg, const char *tname) {
return luaL_argerror(L, narg, msg);
}
-time_t apk_time(void)
-{
- return time(NULL);
-}
-
static apk_blob_t check_blob(lua_State *L, int index)
{
apk_blob_t blob;