URI:
       Fix typo - tty-clock - port of tty-clock to OpenBSD, with pledge/unveil added as goodie.
  HTML git clone https://git.drkhsh.at/tty-clock.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit feaaec0f1ac6cbaace33f1f91ee11633581d9d99
   DIR parent 9bde3b4d6c9f987c69468d3d417c709a01105fc1
  HTML Author: Martin Duquesnoy <xorg62@gmail.com>
       Date:   Wed, 11 Mar 2009 01:31:48 +0100
       
       Fix typo
       
       Diffstat:
         M ttyclock.c                          |      15 +++++++--------
       
       1 file changed, 7 insertions(+), 8 deletions(-)
       ---
   DIR diff --git a/ttyclock.c b/ttyclock.c
       @@ -288,6 +288,7 @@ clock_rebound(void)
                        ttyclock->geo.y + ttyclock->geo.b,
                        ttyclock->geo.w,
                        ttyclock->geo.h);
       +
             return;
        }
        
       @@ -295,10 +296,10 @@ void
        set_second(void)
        {
             /* Reverse option value */
       -     if((ttyclock->option.second = !ttyclock->option.second))
       -          clock_move(ttyclock->geo.x, ttyclock->geo.y, (ttyclock->geo.w = SECFRAMEW), ttyclock->geo.h);
       -     else
       -          clock_move(ttyclock->geo.x, ttyclock->geo.y, (ttyclock->geo.w = NORMFRAMEW), ttyclock->geo.h);
       +     clock_move(ttyclock->geo.x,
       +                ttyclock->geo.y,
       +                (ttyclock->geo.w = ((ttyclock->option.second = !ttyclock->option.second)) ? SECFRAMEW : NORMFRAMEW),
       +                ttyclock->geo.h);
        
             set_center(ttyclock->option.center);
        
       @@ -399,9 +400,7 @@ int
        main(int argc, char **argv)
        {
             int c;
       -     struct timespec sleeptime;
       -     sleeptime.tv_sec = 0;
       -     sleeptime.tv_nsec = UPDATETIME; 
       +     struct timespec sleeptime = {0, UPDATETIME};
        
             struct option long_options[] =
                  {
       @@ -462,7 +461,7 @@ main(int argc, char **argv)
                  update_hour();
                  draw_clock();
                  key_event();
       -          nanosleep(&sleeptime,NULL);
       +          nanosleep(&sleeptime, NULL);
             }
        
             free(ttyclock);