mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-31 09:43:45 -04:00
[misc] Add missing const qualifier
This commit is contained in:
parent
2e4b5a70a5
commit
561228d9f7
@ -668,7 +668,7 @@ b64_decode(const char *b64)
|
|||||||
static const char b64_encode_table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
static const char b64_encode_table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||||
|
|
||||||
static void
|
static void
|
||||||
b64_encode_block(uint8_t *in, char *out, int len)
|
b64_encode_block(const uint8_t *in, char *out, int len)
|
||||||
{
|
{
|
||||||
out[0] = b64_encode_table[in[0] >> 2];
|
out[0] = b64_encode_table[in[0] >> 2];
|
||||||
|
|
||||||
@ -691,7 +691,7 @@ b64_encode_block(uint8_t *in, char *out, int len)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
b64_encode_full_block(uint8_t *in, char *out)
|
b64_encode_full_block(const uint8_t *in, char *out)
|
||||||
{
|
{
|
||||||
out[0] = b64_encode_table[in[0] >> 2];
|
out[0] = b64_encode_table[in[0] >> 2];
|
||||||
out[1] = b64_encode_table[((in[0] & 0x03) << 4) | ((in[1] & 0xf0) >> 4)];
|
out[1] = b64_encode_table[((in[0] & 0x03) << 4) | ((in[1] & 0xf0) >> 4)];
|
||||||
@ -700,7 +700,7 @@ b64_encode_full_block(uint8_t *in, char *out)
|
|||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
b64_encode(uint8_t *in, size_t len)
|
b64_encode(const uint8_t *in, size_t len)
|
||||||
{
|
{
|
||||||
char *encoded;
|
char *encoded;
|
||||||
char *out;
|
char *out;
|
||||||
|
@ -77,7 +77,7 @@ char *
|
|||||||
b64_decode(const char *b64);
|
b64_decode(const char *b64);
|
||||||
|
|
||||||
char *
|
char *
|
||||||
b64_encode(uint8_t *in, size_t len);
|
b64_encode(const uint8_t *in, size_t len);
|
||||||
|
|
||||||
uint64_t
|
uint64_t
|
||||||
murmur_hash64(const void *key, int len, uint32_t seed);
|
murmur_hash64(const void *key, int len, uint32_t seed);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user