summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cipher/des.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cipher/des.c b/cipher/des.c
index bc2a474d..d4863d1b 100644
--- a/cipher/des.c
+++ b/cipher/des.c
@@ -146,8 +146,10 @@
* depending on whether characters are signed or not.
*/
static int
-working_memcmp( const char *a, const char *b, size_t n )
+working_memcmp( const void *_a, const void *_b, size_t n )
{
+ const char *a = _a;
+ const char *b = _b;
for( ; n; n--, a++, b++ )
if( *a != *b )
return (int)(*(byte*)a) - (int)(*(byte*)b);