"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/time.c" between
libksba-1.5.1.tar.bz2 and libksba-1.6.0.tar.bz2

About: KSBA is a library to make the tasks of working with X.509 certificates, CMS data and related objects more easy.

time.c  (libksba-1.5.1.tar.bz2):time.c  (libksba-1.6.0.tar.bz2)
skipping to change at line 159 skipping to change at line 159
{ {
time_t epoch = time (NULL); time_t epoch = time (NULL);
struct tm *tp; struct tm *tp;
#ifdef HAVE_GMTIME_R #ifdef HAVE_GMTIME_R
struct tm tmbuf; struct tm tmbuf;
tp = gmtime_r ( &epoch, &tmbuf); tp = gmtime_r ( &epoch, &tmbuf);
#else #else
tp = gmtime ( &epoch ); tp = gmtime ( &epoch );
#endif #endif
sprintf (timebuf,"%04d%02d%02dT%02d%02d%02d", snprintf (timebuf, sizeof (ksba_isotime_t), "%04d%02d%02dT%02d%02d%02d",
1900 + tp->tm_year, tp->tm_mon+1, tp->tm_mday, 1900 + tp->tm_year, tp->tm_mon+1, tp->tm_mday,
tp->tm_hour, tp->tm_min, tp->tm_sec); tp->tm_hour, tp->tm_min, tp->tm_sec);
} }
 End of changes. 1 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)