krb5 commit: Fix types for t_fortuna.c

Greg Hudson <[email protected]>
Newsgroups gmane.comp.encryption.kerberos.cvs
Message-ID <[email protected]>
https://github.com/krb5/krb5/commit/e6502586d5714e0d61ae190309843aa6637a84ca
commit e6502586d5714e0d61ae190309843aa6637a84ca
Author: Robbie Harwood <[email protected]>
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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.