diff options
author | 2025-01-27 17:11:46 -0500 | |
---|---|---|
committer | 2025-01-27 17:11:46 -0500 | |
commit | cd3c2420fb18313bccb47431724cda86fa00067e (patch) | |
tree | 6681d32e835304fdf51c6036532be5970063c697 | |
parent | cdb94c2be58ccbc427871890017e2213ee634079 (diff) |
lib/formats: Fix build after cdb94c2be58ccbc427871890017e2213ee634079
-rw-r--r-- | src/lib/formats/oric_tap.cpp | 2 | ||||
-rw-r--r-- | src/lib/formats/primoptp.cpp | 2 | ||||
-rw-r--r-- | src/lib/formats/uef_cas.cpp | 3 | ||||
-rw-r--r-- | src/lib/formats/vt_cas.cpp | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/formats/oric_tap.cpp b/src/lib/formats/oric_tap.cpp index 4d4476a072f..47a1447de68 100644 --- a/src/lib/formats/oric_tap.cpp +++ b/src/lib/formats/oric_tap.cpp @@ -348,7 +348,7 @@ static int oric_cassette_calculate_size_in_samples(const uint8_t *bytes, int len static int oric_cassette_fill_wave(int16_t *buffer, int length, const uint8_t *bytes) { unsigned char header[9]; - uint8_t *data_ptr; + const uint8_t *data_ptr; int16_t *p; int i; uint8_t data; diff --git a/src/lib/formats/primoptp.cpp b/src/lib/formats/primoptp.cpp index 4392b35884b..9b189c4cd90 100644 --- a/src/lib/formats/primoptp.cpp +++ b/src/lib/formats/primoptp.cpp @@ -143,7 +143,7 @@ static int primo_cassette_fill_wave(int16_t *buffer, int length, const uint8_t * int i = 0, j = 0, k; int16_t *p = buffer; - uint8_t *b = bytes; + const uint8_t *b = bytes; uint32_t file_size = 0; uint16_t block_size = 0; diff --git a/src/lib/formats/uef_cas.cpp b/src/lib/formats/uef_cas.cpp index 1e21f820500..9932f18721a 100644 --- a/src/lib/formats/uef_cas.cpp +++ b/src/lib/formats/uef_cas.cpp @@ -265,7 +265,8 @@ static int uef_cas_fill_wave( int16_t *buffer, int length, const uint8_t *bytes int chunk_length = get_u32le( &bytes[pos+2] ); uint32_t baud_length, j; - uint8_t i, *c; + uint8_t i; + const uint8_t *c; pos += 6; switch( chunk_type ) { case 0x0100: /* implicit start/stop bit data block */ diff --git a/src/lib/formats/vt_cas.cpp b/src/lib/formats/vt_cas.cpp index dea3a23320a..74a0bbada1e 100644 --- a/src/lib/formats/vt_cas.cpp +++ b/src/lib/formats/vt_cas.cpp @@ -8,7 +8,7 @@ #define SILENCE 8000 -static int generic_fill_wave(int16_t *buffer, int length, uint8_t *code, int bitsamples, int bytesamples, int lo, int16_t *(*fill_wave_byte)(int16_t *buffer, int byte)) +static int generic_fill_wave(int16_t *buffer, int length, const uint8_t *code, int bitsamples, int bytesamples, int lo, int16_t *(*fill_wave_byte)(int16_t *buffer, int byte)) { static int nullbyte; |