Software /
code /
prosody
Changeset
3284:867d6413fe0a
util.signal: Moved a variable declaration to the top of a function, for ANSI C compliance.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 20 Jun 2010 04:07:55 +0500 |
parents | 3283:4a1a87254852 |
children | 3285:c116c4b2db5a |
files | util-src/signal.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util-src/signal.c Sun Jun 20 04:01:25 2010 +0500 +++ b/util-src/signal.c Sun Jun 20 04:07:55 2010 +0500 @@ -165,13 +165,13 @@ static void sighook(lua_State *L, lua_Debug *ar) { + struct signal_event *event; /* restore the old hook */ lua_sethook(L, Hsig, Hmask, Hcount); lua_pushstring(L, LUA_SIGNAL); lua_gettable(L, LUA_REGISTRYINDEX); - struct signal_event *event; while((event = signal_queue)) { lua_pushnumber(L, event->Nsig);