Add mut to variadic args for as_va_list() borrow

This commit is contained in:
PatchRequest
2026-03-02 15:20:03 +01:00
parent 655c926a1f
commit f679a26647
+2 -2
View File
@@ -457,7 +457,7 @@ extern "C" fn beacon_format_append(format: *mut Formatp, text: *const c_char, le
/// Append a formatted string to this object.
#[no_mangle]
unsafe extern "C" fn beacon_format_printf(format: *mut Formatp, fmt: *const c_char, args: ...) {
unsafe extern "C" fn beacon_format_printf(format: *mut Formatp, fmt: *const c_char, mut args: ...) {
if format.is_null() {
return;
}
@@ -603,7 +603,7 @@ pub extern "C" fn beacon_get_output_data() -> &'static mut Carrier {
/// Format and present output to the Beacon operator.
#[no_mangle]
unsafe extern "C" fn beacon_printf(_type: c_int, fmt: *mut c_char, args: ...) {
unsafe extern "C" fn beacon_printf(_type: c_int, fmt: *mut c_char, mut args: ...) {
// Use a buffer large enough for most format operations
let mut buffer = vec![0u8; 4096];