1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00
This commit is contained in:
Frank Denis 2017-02-23 11:13:43 +01:00
parent 9cd732c88d
commit dd9d8e283b

View File

@ -10,8 +10,8 @@
static void *
xmemset(void *dst, int c, size_t n)
{
unsigned char *dst_ = (unsigned char *) dst;
const unsigned char c_ = (unsigned char) c;
unsigned char * dst_ = (unsigned char *) dst;
const unsigned char c_ = (unsigned char) c;
size_t i;
for (i = 0; i < n; i++) {
@ -25,7 +25,8 @@ xmemset(void *dst, int c, size_t n)
# define strcmp(s1, s2) xstrcmp(s1, s2)
static int
strcmp(const char *s1, const char *s2) {
strcmp(const char *s1, const char *s2)
{
while (*s1 == *s2++) {
if (*s1++ == 0) {
return 0;