[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 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];
|
||||
|
||||
|
@ -691,7 +691,7 @@ b64_encode_block(uint8_t *in, char *out, int len)
|
|||
}
|
||||
|
||||
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[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 *
|
||||
b64_encode(uint8_t *in, size_t len)
|
||||
b64_encode(const uint8_t *in, size_t len)
|
||||
{
|
||||
char *encoded;
|
||||
char *out;
|
||||
|
|
|
@ -77,7 +77,7 @@ char *
|
|||
b64_decode(const char *b64);
|
||||
|
||||
char *
|
||||
b64_encode(uint8_t *in, size_t len);
|
||||
b64_encode(const uint8_t *in, size_t len);
|
||||
|
||||
uint64_t
|
||||
murmur_hash64(const void *key, int len, uint32_t seed);
|
||||
|
|
Loading…
Reference in New Issue