]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
base64: use more precise and compact type for mode
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 3 Jun 2025 08:11:02 +0000 (10:11 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 4 Jun 2025 07:39:53 +0000 (09:39 +0200)
rust/src/ffi/base64.rs

index 711ca19e108e0efe9c58ade0a8440a7d9846edaf..6befb5e3f990981a69c554ca213700f0f8cf2a0f 100644 (file)
@@ -31,7 +31,7 @@ pub enum SCBase64ReturnCode {
     SC_BASE64_OVERFLOW,
 }
 
-#[repr(C)]
+#[repr(u8)]
 #[derive(Copy, Clone, Debug, PartialEq, Eq)]
 pub enum SCBase64Mode {
     /* If the following strings were to be passed to the decoder with RFC2045 mode,