URI:
       rename struct name - 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 14e363932c5ffd33c039bb088b15c2af825a528d
   DIR parent 7ffdcd55c1f6ddf615fa360bcac3d181fac1f05f
  HTML Author: martin <xorg62@gmail.com>
       Date:   Mon, 23 Jun 2008 22:08:44 +0200
       
       rename struct name
       
       Diffstat:
         M clock.c                             |      17 ++++++++---------
       
       1 file changed, 8 insertions(+), 9 deletions(-)
       ---
   DIR diff --git a/clock.c b/clock.c
       @@ -84,9 +84,9 @@ typedef struct {
                bool second;
                bool twelve;
                bool keylock;
       -} OPTIONS;
       +} option_t;
        
       -OPTIONS option;
       +option_t option;
        
        typedef struct {
                unsigned int hour[2];
       @@ -95,9 +95,9 @@ typedef struct {
                unsigned int month_day;
                unsigned int month;
                unsigned int year;
       -} TIME;
       +} date_t;
        
       -TIME sdate;
       +date_t sdate;
        
        char *meridiem;
        
       @@ -123,8 +123,7 @@ start(void) {
                keypad (stdscr, TRUE);         
                start_color ();
                refresh();
       -        if (use_default_colors() == OK);
       -        bg = -1;
       +        bg = (use_default_colors() == OK) ? -1 : COLOR_BLACK;
                init_pair(1,COLOR_BLACK, COLOR_GREEN);
                init_pair(2, bg, bg);
                init_pair(3,COLOR_GREEN, bg);
       @@ -138,10 +137,10 @@ start(void) {
        void 
        print_number(int num, int x, int y) {
                int i,u,count=0;
       -        char c;
                int tab[LGNUM];
                int lx=x;
                int ly=y;
       +        char c;
                 
                for (u = 0; u < LGNUM; ++u){
                        tab[u] = number[num][u];
       @@ -433,6 +432,6 @@ main(int argc,char **argv) {
                        check_key(option.keylock);
                        run();
                }
       -         endwin();
       -         return 0;
       +        endwin();
       +        return 0;
        }