Avoid shadowing, and a bit of constification while I'm at it.
[openssl.git] / crypto / cast / c_ecb.c
index 4b523ff..e237ebc 100644 (file)
 
 char *CAST_version="CAST" OPENSSL_VERSION_PTEXT;
 
-void CAST_ecb_encrypt(unsigned char *in, unsigned char *out, CAST_KEY *ks,
-            int encrypt)
+void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out,
+                     CAST_KEY *ks, int _encrypt)
        {
        CAST_LONG l,d[2];
 
        n2l(in,l); d[0]=l;
        n2l(in,l); d[1]=l;
-       if (encrypt)
+       if (_encrypt)
                CAST_encrypt(d,ks);
        else
                CAST_decrypt(d,ks);