]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
NTP: update logger to use new API
authorPierre Chifflier <chifflier@wzdftpd.net>
Thu, 11 Jan 2018 07:17:23 +0000 (08:17 +0100)
committerPierre Chifflier <chifflier@wzdftpd.net>
Thu, 11 Jan 2018 07:17:23 +0000 (08:17 +0100)
rust/src/ntp/ntp.rs

index 186faa0773807886a9d69c322d1e630bdc7d3ca1..92a4b029e0f18291a8991e4433e5f6dd3b968733 100644 (file)
@@ -268,21 +268,17 @@ pub extern "C" fn rs_ntp_tx_get_alstate_progress(_tx: *mut libc::c_void,
 #[no_mangle]
 pub extern "C" fn rs_ntp_tx_set_logged(_state: &mut NTPState,
                                        tx: &mut NTPTransaction,
-                                       logger: libc::uint32_t)
+                                       logged: libc::uint32_t)
 {
-    tx.logged.set_logged(logger);
+    tx.logged.set(logged);
 }
 
 #[no_mangle]
 pub extern "C" fn rs_ntp_tx_get_logged(_state: &mut NTPState,
-                                       tx: &mut NTPTransaction,
-                                       logger: libc::uint32_t)
-                                       -> i8
+                                       tx: &mut NTPTransaction)
+                                       -> u32
 {
-    if tx.logged.is_logged(logger) {
-        return 1;
-    }
-    return 0;
+    return tx.logged.get();
 }