"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/osip2/osip_time.c" between
libosip2-5.0.0.tar.gz and libosip2-5.1.0.tar.gz

About: The GNU oSIP library is an implementation of SIP (RFC3261).

osip_time.c  (libosip2-5.0.0):osip_time.c  (libosip2-5.1.0)
skipping to change at line 98 skipping to change at line 98
if (t != NULL) if (t != NULL)
*t = timemillis / 1000; *t = timemillis / 1000;
} }
return timemillis / 1000; return timemillis / 1000;
} }
#elif !defined(__PALMOS__) && defined(WIN32) #elif !defined(__PALMOS__) && defined(WIN32)
#include <time.h> #include <time.h>
#include <sys/timeb.h> #include <sys/timeb.h>
#include <windows.h>
int int
osip_gettimeofday (struct timeval *tp, void *tz) osip_gettimeofday (struct timeval *tp, void *tz)
{ {
struct _timeb timebuffer; struct _timeb timebuffer;
_ftime (&timebuffer); _ftime (&timebuffer);
tp->tv_sec = (long) timebuffer.time + offset.tv_sec; tp->tv_sec = (long) timebuffer.time + offset.tv_sec;
tp->tv_usec = timebuffer.millitm * 1000; tp->tv_usec = timebuffer.millitm * 1000;
return 0; return 0;
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

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