]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: lua: Rename hlua_action_wake_time() to hlua_set_wake_time()
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 26 Feb 2020 13:54:16 +0000 (14:54 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2020 13:13:00 +0000 (14:13 +0100)
This function does not depends on the action class. So use a more generic
name. It will be easier to bind it on another class if necessary.

src/hlua.c

index f1e91f5cc3556a9573ab432922e6bdc0b9450caf..dda156dda681e76292f25d8c6b970c64c0f3774b 100644 (file)
@@ -6485,10 +6485,9 @@ __LJMP static int hlua_register_fetches(lua_State *L)
        return 0;
 }
 
-/* This function is a lua binding to set the wake_time from an action. It is
- * only used if the action return ACT_RET_YIELD.
+/* This function is a lua binding to set the wake_time.
  */
-__LJMP static int hlua_action_wake_time(lua_State *L)
+__LJMP static int hlua_set_wake_time(lua_State *L)
 {
        struct hlua *hlua = hlua_gethlua(L);
        unsigned int delay;
@@ -8096,7 +8095,7 @@ void hlua_init(void)
        hlua_class_const_int(gL.T, "ABORT",    ACT_RET_ABRT);
        hlua_class_const_int(gL.T, "INVALID",  ACT_RET_INV);
 
-       hlua_class_function(gL.T, "wake_time", hlua_action_wake_time);
+       hlua_class_function(gL.T, "wake_time", hlua_set_wake_time);
 
        lua_setglobal(gL.T, "act");