[BACK]Return to touch.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / touch

Diff for /src/usr.bin/touch/touch.c between version 1.18 and 1.19

version 1.18, 2011/08/20 06:44:24 version 1.19, 2011/08/21 20:55:23
Line 156 
Line 156 
         int              yearset;          int              yearset;
         char            *dot, *p;          char            *dot, *p;
                                         /* Start with the current time. */                                          /* Start with the current time. */
         tmptime = tsp[0].tv_sec;          tmptime = time(NULL);
         if ((lt = localtime(&tmptime)) == NULL)          if ((lt = localtime(&tmptime)) == NULL)
                 err(1, "localtime");                  err(1, "localtime");
                                         /* [[CC]YY]MMDDhhmm[.SS] */                                          /* [[CC]YY]MMDDhhmm[.SS] */
Line 227 
Line 227 
         struct tm       *lt;          struct tm       *lt;
         time_t           tmptime;          time_t           tmptime;
                                         /* Start with the current time. */                                          /* Start with the current time. */
         tmptime = tsp[0].tv_sec;          tmptime = time(NULL);
         if ((lt = localtime(&tmptime)) == NULL)          if ((lt = localtime(&tmptime)) == NULL)
                 err(1, "localtime");                  err(1, "localtime");
   

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19