--- rxvt-unicode/src/iom.C 2004/01/29 23:26:01 1.12 +++ rxvt-unicode/src/iom.C 2004/02/13 12:16:21 1.14 @@ -23,7 +23,7 @@ #include -#if 1 // older unices need these includes for select(2) +#if 1 // older unices need these includes for select (2) # include # include #endif @@ -41,19 +41,20 @@ // time watcher is _always_ valid, this gets rid of a lot // of null-pointer-checks // (must come _before_ iom is being defined) -static struct tw0 : time_watcher { - void cb (time_watcher &w) +static struct tw0 : time_watcher { - // should never get called - // reached end-of-time, or tstamp has a bogus definition, - // or compiler initilization order broken, or somethine else :) - abort (); - } + void cb (time_watcher &w) + { + // should never get called + // reached end-of-time, or tstamp has a bogus definition, + // or compiler initilization order broken, or somethine else :) + abort (); + } - tw0() - : time_watcher (this, &tw0::cb) - { } -} tw0; + tw0 () + : time_watcher (this, &tw0::cb) + { }} +tw0; tstamp NOW; static bool iom_valid; @@ -101,7 +102,7 @@ #endif #if IOM_IO -void io_manager::reg (io_watcher *w) { reg (w, iow); } +void io_manager::reg (io_watcher *w) { reg (w, iow); } void io_manager::unreg (io_watcher *w) { unreg (w, iow); } #endif @@ -146,6 +147,7 @@ } else #endif + { #if IOM_TIME time_watcher *next; @@ -166,7 +168,7 @@ { double diff = next->at - NOW; tval.tv_sec = (int)diff; - tval.tv_usec = (int)((diff - tval.tv_sec) * 1000000); + tval.tv_usec = (int) ((diff - tval.tv_sec) * 1000000); to = &tval; } break; @@ -178,6 +180,7 @@ } } #endif + } #if IOM_CHECK @@ -259,6 +262,7 @@ #else break; #endif + } }