aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerenc Wágner <wferi@niif.hu>2014-10-10 11:50:04 +0200
committerFerenc Wágner <wferi@niif.hu>2014-10-12 10:13:14 +0200
commit7e7fbc4e6512ae225f0f1a2f6dde5ea233f8a788 (patch)
treec1bed7f6350b9958c64e7080b590f5685b285c00
parentbe151c64e724d8a8d250b9a2dd9426a584ed76bc (diff)
downloadsyslinux-7e7fbc4e6512ae225f0f1a2f6dde5ea233f8a788.tar.gz
syslinux-7e7fbc4e6512ae225f0f1a2f6dde5ea233f8a788.tar.xz
syslinux-7e7fbc4e6512ae225f0f1a2f6dde5ea233f8a788.zip
lua: unused optional arguments can go
Not expecting them does not cause any problems, they are ignored by Lua anyway. Signed-off-by: Ferenc Wágner <wferi@niif.hu>
-rw-r--r--com32/lua/src/syslinux.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/com32/lua/src/syslinux.c b/com32/lua/src/syslinux.c
index 6b57144d..076534f1 100644
--- a/com32/lua/src/syslinux.c
+++ b/com32/lua/src/syslinux.c
@@ -144,14 +144,9 @@ static int sl_boot_linux(lua_State * L)
size_t kernel_len;
struct initramfs *initramfs;
char *newcmdline;
- uint32_t mem_limit = luaL_optint(L, 3, 0);
- uint16_t video_mode = luaL_optint(L, 4, 0);
int ret;
char **argv, **argp, *arg, *p;
- (void)mem_limit;
- (void)video_mode;
-
ret = __parse_argv(&argv, cmdline);
newcmdline = malloc(strlen(kernel) + 12);
@@ -328,11 +323,6 @@ static int sl_boot_it(lua_State * L)
const syslinux_file *kernel = luaL_checkudata(L, 1, SYSLINUX_FILE);
struct initramfs *initramfs = luaL_checkudata(L, 2, SYSLINUX_FILE);
const char *cmdline = luaL_optstring(L, 3, "");
- uint32_t mem_limit = luaL_optint(L, 4, 0);
- uint16_t video_mode = luaL_optint(L, 5, 0);
- /* Preventing gcc to complain about unused variables */
- (void)video_mode;
- (void)mem_limit;
return syslinux_boot_linux(kernel->data, kernel->size,
initramfs, NULL, (char *)cmdline);