[29916] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Fix types for t_fortuna.c

daemon@ATHENA.MIT.EDU (Greg Hudson)
Fri Apr 14 12:14:42 2017

Date: Fri, 14 Apr 2017 12:14:36 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-Id: <201704141614.v3EGEaU6024191@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/e6502586d5714e0d61ae190309843aa6637a84ca
commit e6502586d5714e0d61ae190309843aa6637a84ca
Author: Robbie Harwood <rharwood@redhat.com>
Date:   Thu Apr 6 15:45:57 2017 -0400

    Fix types for t_fortuna.c
    
    clang warns about abs() being used on an unsigned value, although the
    code did work in practice due to the implicit conversion from size_t
    to int.

 src/lib/crypto/krb/t_fortuna.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lib/crypto/krb/t_fortuna.c b/src/lib/crypto/krb/t_fortuna.c
index 4f25bee..508ffcf 100644
--- a/src/lib/crypto/krb/t_fortuna.c
+++ b/src/lib/crypto/krb/t_fortuna.c
@@ -85,7 +85,7 @@ head_tail_test(struct fortuna_state *st)
 {
     static unsigned char buffer[1024 * 1024];
     unsigned char c;
-    size_t i, len = sizeof(buffer);
+    int i, len = sizeof(buffer);
     int bit, bits[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
     double res;
 
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post