Changeset 11716


Ignore:
Timestamp:
Jan 19, 2011, 9:43:43 PM (11 years ago)
Author:
jordan
Message:

tr_sha1(): remove unnecessary casts from va_arg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/crypto.c

    r11709 r11716  
    3636
    3737void
    38 tr_sha1( uint8_t *    setme,
    39          const void * content1,
    40          int          content1_len,
    41          ... )
     38tr_sha1( uint8_t * setme, const void * content1, int content1_len, ... )
    4239{
    4340    va_list vl;
     
    4845
    4946    va_start( vl, content1_len );
    50     for( ; ; )
    51     {
    52         const void * content = (const void*) va_arg( vl, const void* );
    53         const int    content_len = content ? (int) va_arg( vl, int ) : -1;
     47    for( ;; )
     48    {
     49        const void * content = va_arg( vl, const void* );
     50        const int    content_len = content ? va_arg( vl, int ) : -1;
    5451        if( content == NULL || content_len < 1 )
    5552            break;
Note: See TracChangeset for help on using the changeset viewer.