From 32c24b51c0280d944920b5938a04eeded60e4cb1 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Wed, 5 Jun 2019 22:28:16 -0700 Subject: [PATCH] Fix deprecated libc integer types As of https://github.com/rust-lang/libc/issues/1304 types such as `libc::int64_t` are deprecated. Instead, we should use the native Rust types like `i64`, as they are compatible with the C types. Signed-off-by: Mcat12 --- src/ftl/memory_model/query.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ftl/memory_model/query.rs b/src/ftl/memory_model/query.rs index 66dab06d..05605fff 100644 --- a/src/ftl/memory_model/query.rs +++ b/src/ftl/memory_model/query.rs @@ -41,7 +41,7 @@ pub struct FtlQuery { /// Saved in units of 1/10 milliseconds (1 = 0.1ms, 2 = 0.2ms, /// 2500 = 250.0ms, etc.) pub response_time: libc::c_ulong, - pub database_id: libc::int64_t, + pub database_id: i64, pub time_index: libc::c_uint, pub is_complete: bool }