ogs-conv.{c,h}: Constify several parameters

This commit is contained in:
Pau Espin 2024-01-02 16:48:37 +01:00 committed by Sukchan Lee
parent 9b729b2c6f
commit 55844d1eed
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ int ogs_ascii_to_hex(char *in, int in_len, void *out, int out_len)
return j;
}
void *ogs_hex_to_ascii(void *in, int in_len, void *out, int out_len)
void *ogs_hex_to_ascii(const void *in, int in_len, void *out, int out_len)
{
char *p, *last;
int i = 0, l, off = 0;

View File

@ -36,7 +36,7 @@ static ogs_inline void *ogs_hex_from_string(
return out;
}
void *ogs_hex_to_ascii(void *in, int in_len, void *out, int out_len);
void *ogs_hex_to_ascii(const void *in, int in_len, void *out, int out_len);
void *ogs_uint64_to_buffer(uint64_t num, int size, void *buffer);
uint64_t ogs_buffer_to_uint64(void *buffer, int size);
void *ogs_bcd_to_buffer(const char *in, void *out, int *out_len);