Browse Source

Merge pull request #386 from libtom/pr/fix-issue-384

fix #384 "const" related warnings
karel-m 7 years ago
parent
commit
c2548bf190
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/ciphers/blowfish.c
  2. 2 2
      src/ciphers/twofish/twofish.c

+ 2 - 2
src/ciphers/blowfish.c

@@ -394,7 +394,7 @@ int blowfish_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symme
    ulong32 L, R;
    int r;
 #ifndef __GNUC__
-   ulong32 *S1, *S2, *S3, *S4;
+   const ulong32 *S1, *S2, *S3, *S4;
 #endif
 
     LTC_ARGCHK(pt   != NULL);
@@ -456,7 +456,7 @@ int blowfish_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symme
    ulong32 L, R;
    int r;
 #ifndef __GNUC__
-   ulong32 *S1, *S2, *S3, *S4;
+   const ulong32 *S1, *S2, *S3, *S4;
 #endif
 
     LTC_ARGCHK(pt   != NULL);

+ 2 - 2
src/ciphers/twofish/twofish.c

@@ -473,7 +473,7 @@ int twofish_ecb_encrypt(const unsigned char *pt, unsigned char *ct, const symmet
     const ulong32 *k;
     int r;
 #if !defined(LTC_TWOFISH_SMALL) && !defined(__GNUC__)
-    ulong32 *S1, *S2, *S3, *S4;
+    const ulong32 *S1, *S2, *S3, *S4;
 #endif
 
     LTC_ARGCHK(pt   != NULL);
@@ -547,7 +547,7 @@ int twofish_ecb_decrypt(const unsigned char *ct, unsigned char *pt, const symmet
     const ulong32 *k;
     int r;
 #if !defined(LTC_TWOFISH_SMALL) && !defined(__GNUC__)
-    ulong32 *S1, *S2, *S3, *S4;
+    const ulong32 *S1, *S2, *S3, *S4;
 #endif
 
     LTC_ARGCHK(pt   != NULL);