diff lib/des.c @ 6782:6c08fff6ef83

2006-05-10 Bruno Haible <bruno@clisp.org> * des.c: Cast to avoid warnings.
author Simon Josefsson <simon@josefsson.org>
date Wed, 10 May 2006 14:06:26 +0000
parents d38a727f8479
children a88f85e4728f
line wrap: on
line diff
--- a/lib/des.c	Wed May 10 13:37:20 2006 +0000
+++ b/lib/des.c	Wed May 10 14:06:26 2006 +0000
@@ -1,5 +1,5 @@
 /* des.c --- DES and Triple-DES encryption/decryption Algorithm
- * Copyright (C) 1998, 1999, 2001, 2002, 2003, 2004, 2005
+ * Copyright (C) 1998, 1999, 2001, 2002, 2003, 2004, 2005, 2006
  *    Free Software Foundation, Inc.
  *
  * This file is free software; you can redistribute it and/or modify
@@ -447,7 +447,7 @@
 static void
 des_key_schedule (const char * _rawkey, uint32_t * subkey)
 {
-  const unsigned char *rawkey = _rawkey;
+  const unsigned char *rawkey = (const unsigned char *) _rawkey;
   uint32_t left, right, work;
   int round;
 
@@ -559,8 +559,8 @@
 void
 des_ecb_crypt (des_ctx *ctx, const char * _from, char * _to, int mode)
 {
-  const unsigned char *from = _from;
-  unsigned char *to = _to;
+  const unsigned char *from = (const unsigned char *) _from;
+  unsigned char *to = (unsigned char *) _to;
   uint32_t left, right, work;
   uint32_t *keys;
 
@@ -632,8 +632,8 @@
 		     const char * _from,
 		     char * _to, int mode)
 {
-  const unsigned char *from = _from;
-  unsigned char *to = _to;
+  const unsigned char *from = (const unsigned char *) _from;
+  unsigned char *to = (unsigned char *) _to;
   uint32_t left, right, work;
   uint32_t *keys;