Bug 1000858: Fix r_gettimeint on win32 which prevented us from sending TURN allocations r=ekr
authorByron Campen [:bwc] <docfaraday@gmail.com>
Thu, 24 Apr 2014 16:56:00 -0700
changeset 180591 83ea7136632f68f79060880bc3ae41a2573e8880
parent 180590 787663bcaf04badfa24eed19bb3af48752bbea10
child 180592 74d6c877ed64e109767207d426db196d75ca3ba3
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersekr
bugs1000858
milestone31.0a1
Bug 1000858: Fix r_gettimeint on win32 which prevented us from sending TURN allocations r=ekr
media/mtransport/third_party/nrappkit/src/util/libekr/r_time.c
--- a/media/mtransport/third_party/nrappkit/src/util/libekr/r_time.c
+++ b/media/mtransport/third_party/nrappkit/src/util/libekr/r_time.c
@@ -172,25 +172,19 @@ int r_int2timeval(UINT8 t,struct timeval
     tv->tv_sec=t/1000000;
     tv->tv_usec=t%1000000;
 
     return(0);
   }
 
 UINT8 r_gettimeint()
   {
-
-#ifdef WIN32
-    struct timeval tv = {0,0};
-
-#else
     struct timeval tv;
 
     gettimeofday(&tv,0);
-#endif
 
     return r_timeval2int(&tv);
   }
 
 /* t1-t0 in microseconds */
 int r_timeval_diff_usec(struct timeval *t1, struct timeval *t0, INT8 *diff)
   {
     int r,_status;