mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-21 13:59:40 +00:00
evp_test.c: avoid warning from having a pointer difference returned as int
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
8a2ce3a313
commit
c78a34f475
4
crypto/evp/evp_test.c
Normal file → Executable file
4
crypto/evp/evp_test.c
Normal file → Executable file
@ -76,6 +76,7 @@ static void hexdump(FILE *f, const char *title, const unsigned char *s, int l)
|
||||
static int convert(unsigned char *s)
|
||||
{
|
||||
unsigned char *d;
|
||||
int digits = 0;
|
||||
|
||||
for (d = s; *s; s += 2, ++d) {
|
||||
unsigned int n;
|
||||
@ -86,8 +87,9 @@ static int convert(unsigned char *s)
|
||||
}
|
||||
sscanf((char *)s, "%2x", &n);
|
||||
*d = (unsigned char)n;
|
||||
digits++;
|
||||
}
|
||||
return s - d;
|
||||
return digits;
|
||||
}
|
||||
|
||||
static char *sstrsep(char **string, const char *delim)
|
||||
|
Loading…
x
Reference in New Issue
Block a user