mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
CLEANUP: hlua: fix indent, remove extra return in hlua_core_get_var()
This is cleanup patch to address cosmetic issues introduced in f034139bc0
("MINOR: lua: Allow reading "proc." scoped vars from LUA core.")
Also taking this opportunity to prefix the function with __LJMP to
indicate that it may longjump.
No backport needed.
This commit is contained in:
parent
564addcb72
commit
f41402ab29
@ -2011,7 +2011,7 @@ static int hlua_set_map(lua_State *L)
|
|||||||
/* This function is an LUA binding. It provides a function
|
/* This function is an LUA binding. It provides a function
|
||||||
* for retrieving a var from the proc scope in core.
|
* for retrieving a var from the proc scope in core.
|
||||||
*/
|
*/
|
||||||
static int hlua_core_get_var(lua_State *L)
|
__LJMP static int hlua_core_get_var(lua_State *L)
|
||||||
{
|
{
|
||||||
const char *name;
|
const char *name;
|
||||||
size_t len;
|
size_t len;
|
||||||
@ -2033,7 +2033,6 @@ static int hlua_set_map(lua_State *L)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return MAY_LJMP(hlua_smp2lua(L, &smp));
|
return MAY_LJMP(hlua_smp2lua(L, &smp));
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This function disables the sending of email through the
|
/* This function disables the sending of email through the
|
||||||
|
Loading…
Reference in New Issue
Block a user