Several cleanups suggested by mab.
This change addresses several issues noted by mab:
• Use rough_time_t as a type for Roughtime timestamps. (Note that not
all timestamps use this type. Times from the monotonic clock, for
example, are not Roughtime timestamps.)
• Split the Success test into so that misalignment is tested
separately.
• Use sizeof(tag_t) in protocol.cc.
Change-Id: I0228d35c9116aa44b9a792df54a2df6b7d26d6e3
diff --git a/simple_server_main.cc b/simple_server_main.cc
index bc3002a..99048ef 100644
--- a/simple_server_main.cc
+++ b/simple_server_main.cc
@@ -60,7 +60,8 @@
std::unique_ptr<roughtime::Identity> identity =
roughtime::SimpleServer::MakeIdentity(root_private_key, 0,
2147483647000000);
- std::unique_ptr<TimeSource> time_source(new roughtime::SystemTimeSource);
+ std::unique_ptr<roughtime::TimeSource> time_source(
+ new roughtime::SystemTimeSource);
auto server =
std::unique_ptr<roughtime::SimpleServer>(new roughtime::SimpleServer(