MINOR: samples: rename some struct member from "smp" to "data"

This members contains data and not sample.
This commit is contained in:
Thierry FOURNIER
2015-08-19 08:35:43 +02:00
committed by Willy Tarreau
parent 12ba0c29d6
commit 503bb09873
6 changed files with 65 additions and 65 deletions

View File

@@ -1379,7 +1379,7 @@ __LJMP static inline int _hlua_map_lookup(struct lua_State *L, int str)
}
pat = pattern_exec_match(&desc->pat, &smp, 1);
if (!pat || !pat->smp) {
if (!pat || !pat->data) {
if (str)
lua_pushstring(L, "");
else
@@ -1388,7 +1388,7 @@ __LJMP static inline int _hlua_map_lookup(struct lua_State *L, int str)
}
/* The Lua pattern must return a string, so we can't check the returned type */
lua_pushlstring(L, pat->smp->data.str.str, pat->smp->data.str.len);
lua_pushlstring(L, pat->data->data.str.str, pat->data->data.str.len);
return 1;
}