aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-20 04:07:55 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-20 04:07:55 +0500
commit1f75bd5099dde7e46660b90deff5b09553ee1e7e (patch)
tree33c770f9ac63cbbe87cb08a622435d28a6312c7a
parentc4f2a6c8b369a159a08255320935f51748fe4fe7 (diff)
downloadprosody-1f75bd5099dde7e46660b90deff5b09553ee1e7e.tar.gz
prosody-1f75bd5099dde7e46660b90deff5b09553ee1e7e.zip
util.signal: Moved a variable declaration to the top of a function, for ANSI C compliance.
-rw-r--r--util-src/signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/signal.c b/util-src/signal.c
index 6b850807..961d2d3e 100644
--- a/util-src/signal.c
+++ b/util-src/signal.c
@@ -165,13 +165,13 @@ static struct signal_event *last_event = NULL;
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);