Fix Travis/unittest broken since b662a45
[oweals/minetest.git] / src / network / connection.h
index 7ba0d086ebcd871a939fbd7638f12f332ac94e9e..3a8388522b83852c5a1e98ed13272a74de34fb64 100644 (file)
@@ -175,7 +175,7 @@ struct BufferedPacket
        Buffer<u8> data; // Data of the packet, including headers
        float time; // Seconds from buffering the packet or re-sending
        float totaltime; // Seconds from buffering the packet
-       unsigned int absolute_send_time;
+       u64 absolute_send_time;
        Address address; // Sender or destination
        unsigned int resend_count;
 };
@@ -732,8 +732,8 @@ class Peer {
                virtual void reportRTT(float rtt) {};
 
                void RTTStatistics(float rtt,
-                                                       std::string profiler_id="",
-                                                       unsigned int num_samples=1000);
+                                                       const std::string &profiler_id = "",
+                                                       unsigned int num_samples = 1000);
 
                bool IncUseCount();
                void DecUseCount();