From 7a4896c3b3d2f41cda46959c25c1c7e13e79e116 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 14 Oct 2022 15:29:53 -0400 Subject: Updated references. --- src/lpm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lpm.c') diff --git a/src/lpm.c b/src/lpm.c index 760c372..ee8afa4 100644 --- a/src/lpm.c +++ b/src/lpm.c @@ -529,8 +529,8 @@ static const luaL_Reg system_lib[] = { #endif -extern const char lpm_lua[]; -extern unsigned int lpm_lua_len; +extern const char src_lpm_lua[]; +extern unsigned int src_lpm_lua_len; int main(int argc, char* argv[]) { curl = curl_easy_init(); if (!curl) @@ -560,9 +560,9 @@ int main(int argc, char* argv[]) { lua_pushliteral(L, LITE_ARCH_TUPLE); lua_setglobal(L, "ARCH"); #if LPM_LIVE - if (luaL_loadfile(L, "lpm.lua") || lua_pcall(L, 0, 1, 0)) { + if (luaL_loadfile(L, "src/lpm.lua") || lua_pcall(L, 0, 1, 0)) { #else - if (luaL_loadbuffer(L, lpm_lua, lpm_lua_len, "lpm.lua") || lua_pcall(L, 0, 1, 0)) { + if (luaL_loadbuffer(L, src_lpm_lua, src_lpm_lua_len, "lpm.lua") || lua_pcall(L, 0, 1, 0)) { #endif fprintf(stderr, "internal error when starting the application: %s\n", lua_tostring(L, -1)); return -1; -- cgit v1.2.3