fixes for ClockService::clock_type -> RestrictedInt change introduced by last commit
[senf.git] / senf / Socket / Protocols / DatagramSocketProtocol.cc
index 020ec24..48bd1a8 100644 (file)
@@ -35,7 +35,6 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
-#include <senf/Utils/ClockTypeMacros.hh>
 
 //#include "DatagramSocketProtocol.mpp"
 #define prefix_
@@ -57,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 SENF_INT2CLOCKTYPE(tv.tv_sec * 1000000000LL + tv.tv_usec * 1000LL);
+    return ClockService::clock_type(tv.tv_sec * 1000000000LL + tv.tv_usec * 1000LL);
 }