des.c, des3.c: Remove unused variables
authorEzra Peisach <epeisach@mit.edu>
Wed, 28 Jun 2000 16:59:15 +0000 (16:59 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 28 Jun 2000 16:59:15 +0000 (16:59 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12447 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/enc_provider/ChangeLog
src/lib/crypto/enc_provider/des.c
src/lib/crypto/enc_provider/des3.c

index 8862eb24731092d453a2106231b610f7dc7a2231..f95a62210b9af15bfb5dcbf85da6d11c934edd7f 100644 (file)
@@ -1,3 +1,7 @@
+2000-06-28  Ezra Peisach  <epeisach@mit.edu>
+
+       * des.c, des3.c: Remove unused variables.
+
 2000-01-21  Ken Raeburn  <raeburn@mit.edu>
 
        * des.c (mit_des_zeroblock): Now const, and using C default
index 2a4af90329ac1ed25d8fe9cb8538bb36bbec233a..d4cc729a600b928d3c2308e61855de9e852214d8 100644 (file)
@@ -48,7 +48,6 @@ k5_des_docrypt(krb5_const krb5_keyblock *key, krb5_const krb5_data *ivec,
               krb5_const krb5_data *input, krb5_data *output, int encrypt)
 {
     mit_des_key_schedule schedule;
-    int ret;
 
     /* key->enctype was checked by the caller */
 
@@ -61,7 +60,7 @@ k5_des_docrypt(krb5_const krb5_keyblock *key, krb5_const krb5_data *ivec,
     if (input->length != output->length)
        return(KRB5_BAD_MSIZE);
 
-    switch (ret = mit_des_key_sched(key->contents, schedule)) {
+    switch (mit_des_key_sched(key->contents, schedule)) {
     case -1:
        return(KRB5DES_BAD_KEYPAR);
     case -2:
index d8ce569df91c7f7262a50ad66525365a3b62502d..92b5491d1174034b9af99080d3ca051ae2706ae0 100644 (file)
@@ -47,7 +47,6 @@ k5_des3_docrypt(krb5_const krb5_keyblock *key, krb5_const krb5_data *ivec,
                krb5_const krb5_data *input, krb5_data *output, int encrypt)
 {
     mit_des3_key_schedule schedule;
-    int ret;
 
     /* key->enctype was checked by the caller */
 
@@ -60,7 +59,7 @@ k5_des3_docrypt(krb5_const krb5_keyblock *key, krb5_const krb5_data *ivec,
     if (input->length != output->length)
        return(KRB5_BAD_MSIZE);
 
-    switch (ret = mit_des3_key_sched(*(mit_des3_cblock *)key->contents,
+    switch (mit_des3_key_sched(*(mit_des3_cblock *)key->contents,
                                     schedule)) {
     case -1:
        return(KRB5DES_BAD_KEYPAR);