Permalink
Browse files

minor coding style fixes in the lua/luajit bytecode loader.

  • Loading branch information...
1 parent e6297a5 commit 15d8550b6f25754f48ce1f30d28ed7bf08a6c6da @agentzh agentzh committed Sep 26, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/ngx_http_lua_clfactory.c
@@ -656,7 +656,8 @@ ngx_http_lua_clfactory_loadbuffer(lua_State *L, const char *buff,
ls.s = buff;
ls.size = size;
- ls.sent_begin = ls.sent_end = 0;
+ ls.sent_begin = 0;
+ ls.sent_end = 0;
return lua_load(L, clfactory_getS, &ls, name);
}
@@ -758,9 +759,7 @@ clfactory_errfile(lua_State *L, const char *what, int fname_index)
static const char *
clfactory_getS(lua_State *L, void *ud, size_t *size)
{
- clfactory_buffer_ctx_t *ls;
-
- ls = (clfactory_buffer_ctx_t *) ud;
+ clfactory_buffer_ctx_t *ls = ud;
if (ls->sent_begin == 0) {
ls->sent_begin = 1;

0 comments on commit 15d8550

Please sign in to comment.