util.signal: Moved a variable declaration to the top of a function, for ANSI C compli...
authorWaqas Hussain <waqas20@gmail.com>
Sat, 19 Jun 2010 23:07:55 +0000 (04:07 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Sat, 19 Jun 2010 23:07:55 +0000 (04:07 +0500)
util-src/signal.c

index 6b850807e8199107fc8d7b035ebcf57cf22c3635..961d2d3e06acda484613a0ebdfc54a8f25625586 100644 (file)
@@ -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);