[BACK]Return to date.y CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/date.y between version 1.1 and 1.2

version 1.1, 2005/03/23 20:00:18 version 1.2, 2005/03/24 03:07:04
Line 19 
Line 19 
   
 #include <ctype.h>  #include <ctype.h>
 #include <stdio.h>  #include <stdio.h>
   #include <stdarg.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <time.h>  #include <time.h>
Line 79 
Line 80 
 static time_t   yyRelMonth;  static time_t   yyRelMonth;
 static time_t   yyRelSeconds;  static time_t   yyRelSeconds;
   
   
   static int   yyerror   (const char *, ...);
   static int   yylex     (void);
   static int   yyparse   (void);
   
   
 %}  %}
   
 %union {  %union {
Line 488 
Line 495 
   
 /* ARGSUSED */  /* ARGSUSED */
 static int  static int
 yyerror(char *s)  yyerror(const char *fmt, ...)
 {  {
         cvs_log(LP_ERR, "%s", s);          va_list vap;
   
           va_start(vap, fmt);
           cvs_vlog(LP_ERR, fmt, vap);
           va_end(vap);
   
         return (0);          return (0);
 }  }
   
Line 804 
Line 816 
 {  {
         struct tm       *tm, gmt;          struct tm       *tm, gmt;
         struct timeb    ftz;          struct timeb    ftz;
         time_t          Start;          time_t          Start, tod, nowtime;
         time_t          tod;  
         time_t nowtime;  
   
         yyInput = p;          yyInput = p;
         if (now == NULL) {          if (now == NULL) {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2