Skip to content

Commit 0ec0d8d

Browse files
catenacybervictorjulien
authored andcommitted
output/rfb: remove unused function parameters
1 parent 24c2702 commit 0ec0d8d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

rust/src/rfb/logger.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
use std;
2121
use std::fmt::Write;
22-
use super::rfb::{RFBState, RFBTransaction};
22+
use super::rfb::RFBTransaction;
2323
use crate::jsonbuilder::{JsonBuilder, JsonError};
2424

2525
fn log_rfb(tx: &RFBTransaction, js: &mut JsonBuilder) -> Result<(), JsonError> {
@@ -113,8 +113,7 @@ fn log_rfb(tx: &RFBTransaction, js: &mut JsonBuilder) -> Result<(), JsonError> {
113113
}
114114

115115
#[no_mangle]
116-
pub unsafe extern "C" fn rs_rfb_logger_log(_state: &mut RFBState,
117-
tx: *mut std::os::raw::c_void,
116+
pub unsafe extern "C" fn rs_rfb_logger_log(tx: *mut std::os::raw::c_void,
118117
js: &mut JsonBuilder) -> bool {
119118
let tx = cast_pointer!(tx, RFBTransaction);
120119
log_rfb(tx, js).is_ok()

src/output-json-rfb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848

4949
bool JsonRFBAddMetadata(const Flow *f, uint64_t tx_id, JsonBuilder *js)
5050
{
51-
RFBState *state = FlowGetAppState(f);
51+
void *state = FlowGetAppState(f);
5252
if (state) {
5353
RFBTransaction *tx = AppLayerParserGetTx(f->proto, ALPROTO_RFB, state, tx_id);
5454
if (tx) {
55-
return rs_rfb_logger_log(state, tx, js);
55+
return rs_rfb_logger_log(tx, js);
5656
}
5757
}
5858

@@ -69,7 +69,7 @@ static int JsonRFBLogger(ThreadVars *tv, void *thread_data,
6969
return TM_ECODE_FAILED;
7070
}
7171

72-
if (!rs_rfb_logger_log(NULL, tx, js)) {
72+
if (!rs_rfb_logger_log(tx, js)) {
7373
goto error;
7474
}
7575

0 commit comments

Comments
 (0)