summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-08-03 21:18:55 +0200
committerRichard Levitte <levitte@openssl.org>2016-08-19 14:41:07 +0200
commitc78a34f4750b7a35c02033cb50879152d230a192 (patch)
tree2339221d278ef783ed5699aea10f7ac1e6d60fa8 /crypto/evp
parent8a2ce3a31365f6179f126912a4df85d07a59ca85 (diff)
evp_test.c: avoid warning from having a pointer difference returned as int
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/evp')
-rwxr-xr-x[-rw-r--r--]crypto/evp/evp_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/evp/evp_test.c b/crypto/evp/evp_test.c
index d7441ec7b7..98796427bf 100644..100755
--- a/crypto/evp/evp_test.c
+++ b/crypto/evp/evp_test.c
@@ -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)