]> code.delx.au - pulseaudio/blobdiff - src/pulse/timeval.c
core-util: Add pa_safe_streq
[pulseaudio] / src / pulse / timeval.c
index 10ba322f067236fa372f9fbf10021ad688e70a02..a394dbea0a629ae54b86687642b5a6c4648bfe88 100644 (file)
@@ -49,6 +49,7 @@ struct timeval *pa_gettimeofday(struct timeval *tv) {
 #else
 #define EPOCHFILETIME (116444736000000000LL)
 #endif
+{
     FILETIME ft;
     LARGE_INTEGER li;
     int64_t t;
@@ -61,6 +62,7 @@ struct timeval *pa_gettimeofday(struct timeval *tv) {
     t /= 10;                /* In microseconds */
     tv->tv_sec  = (time_t) (t / PA_USEC_PER_SEC);
     tv->tv_usec = (suseconds_t) (t % PA_USEC_PER_SEC);
+}
 #elif defined(HAVE_GETTIMEOFDAY)
     pa_assert_se(gettimeofday(tv, NULL) == 0);
 #else
@@ -76,7 +78,7 @@ pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b) {
     pa_assert(a);
     pa_assert(b);
 
-    /* Check which whan is the earlier time and swap the two arguments if required. */
+    /* Check which is the earlier time and swap the two arguments if required. */
     if (PA_UNLIKELY(pa_timeval_cmp(a, b) < 0)) {
         const struct timeval *c;
         c = a;