Skip to content

Commit

Permalink
Fix compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael R Sweet committed Jun 1, 2017
1 parent 7c4b136 commit 163a773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cups/tls-gnutls.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* TLS support code for CUPS using GNU TLS.
*
* Copyright 2007-2016 by Apple Inc.
* Copyright 2007-2017 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
*
* These coded instructions, statements, and computer programs are the
Expand Down Expand Up @@ -397,7 +397,7 @@ httpCredentialsAreValidForName(
for (i = 0; i < count; i ++)
{
rserial_size = sizeof(rserial);
if (!gnutls_x509_crl_get_crt_serial(tls_crl, i, rserial, &rserial_size, NULL) && cserial_size == rserial_size && !memcmp(cserial, rserial, rserial_size))
if (!gnutls_x509_crl_get_crt_serial(tls_crl, (unsigned)i, rserial, &rserial_size, NULL) && cserial_size == rserial_size && !memcmp(cserial, rserial, rserial_size))
{
result = 0;
break;
Expand Down

0 comments on commit 163a773

Please sign in to comment.