minor fixes for clang++
[senf.git] / senf / Socket / Protocols / DatagramSocketProtocol.cc
index 01096e3..48bd1a8 100644 (file)
@@ -45,7 +45,7 @@ prefix_ senf::ClockService::clock_type senf::DatagramSocketProtocol::timestamp()
 {
     struct timeval tv;
     if (::ioctl(fd(), SIOCGSTAMP, &tv) < 0)
-        SENF_THROW_SYSTEM_EXCEPTION("");
+        SENF_THROW_SYSTEM_EXCEPTION("could not get timestamp in DatagramSocketProtocol");
     return ClockService::from_timeval(tv);
 }
 
@@ -56,7 +56,7 @@ prefix_ senf::ClockService::clock_type senf::DatagramSocketProtocol::timestamp_s
     // this may reduce the precision, but we only care about +/- 1ms, for now 
     struct timeval tv;
     ::gettimeofday( &tv, NULL);
-    return tv.tv_sec * 1000000000LL + tv.tv_usec * 1000LL;
+    return ClockService::clock_type(tv.tv_sec * 1000000000LL + tv.tv_usec * 1000LL);
 }