Constification.
This commit is contained in:
parent
a78b21fc67
commit
7a216dfee5
@ -179,7 +179,7 @@ int BUF_MEM_grow_clean(BUF_MEM *str, size_t len)
|
|||||||
return(len);
|
return(len);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BUF_reverse(unsigned char *out, unsigned char *in, size_t size)
|
void BUF_reverse(unsigned char *out, const unsigned char *in, size_t size)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
if (in)
|
if (in)
|
||||||
|
@ -88,7 +88,7 @@ int BUF_MEM_grow_clean(BUF_MEM *str, size_t len);
|
|||||||
char * BUF_strdup(const char *str);
|
char * BUF_strdup(const char *str);
|
||||||
char * BUF_strndup(const char *str, size_t siz);
|
char * BUF_strndup(const char *str, size_t siz);
|
||||||
void * BUF_memdup(const void *data, size_t siz);
|
void * BUF_memdup(const void *data, size_t siz);
|
||||||
void BUF_reverse(unsigned char *out, unsigned char *in, size_t siz);
|
void BUF_reverse(unsigned char *out, const unsigned char *in, size_t siz);
|
||||||
|
|
||||||
/* safe string functions */
|
/* safe string functions */
|
||||||
size_t BUF_strlcpy(char *dst,const char *src,size_t siz);
|
size_t BUF_strlcpy(char *dst,const char *src,size_t siz);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user