Changeset 982c2c891aa4dc440fe65009993004b52534b577

Show
Ignore:
Timestamp:
08/03/06 18:58:10 (2 years ago)
Author:
Clément Stenac <zorglub@videolan.org>
git-committer:
Clément Stenac <zorglub@videolan.org> 1154624290 +0000
git-parent:

[2d824acd426d7f4c5169083ce9966b5ed4e15da3]

git-author:
Clément Stenac <zorglub@videolan.org> 1154624290 +0000
Message:

Fix a bunch of warnings and errors

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/control/http/macro.c

    r8f973a0 r982c2c8  
    726726                    f = config_GetFloat( p_intf, m->param1 ); 
    727727                    div = lldiv( f * 1000000 , 1000000 ); 
    728                     sprintf( value, I64Fd".%06u", div.quot, 
     728                    sprintf( value, "%lld.%06u", div.quot, 
    729729                            (unsigned int)div.rem ); 
    730730                    break; 
  • modules/control/http/rpn.c

    refae654 r982c2c8  
    699699                    char psz_value[20]; 
    700700                    lldiv_t value = lldiv( val.f_float * 1000000, 1000000 ); 
    701                     snprintf( psz_value, sizeof(psz_value), I64Fd".%06u", 
     701                    snprintf( psz_value, sizeof(psz_value), "%lld.%06u", 
    702702                                    value.quot, (unsigned int)value.rem ); 
    703703                    E_(SSPush)( st, psz_value ); 
     
    796796                lldiv_t value = lldiv( config_GetFloat( p_intf, psz_variable ) 
    797797                                       * 1000000, 1000000 ); 
    798                 snprintf( psz_string, sizeof(psz_string), I64Fd".%06u", 
     798                snprintf( psz_string, sizeof(psz_string), "%lld.%06u", 
    799799                          value.quot, (unsigned int)value.rem ); 
    800800                E_(SSPush)( st, psz_string ); 
     
    989989                                _(VLC_META_INFO_CAT), _(VLC_META_TITLE) ); 
    990990                    if( psz_val == NULL ) 
    991                         psz_val == strdup( p_item->psz_name ); 
     991                        psz_val = strdup( p_item->psz_name ); 
    992992                } 
    993993                else if( !strcmp( psz_meta, "ALBUM" ) ) 
  • modules/demux/mp4/libmp4.c

    r2d824ac r982c2c8  
    6868    if( ( i_read > 0 )&&(p_peek[0] ) ) \ 
    6969    { \ 
    70         p_str = calloc( sizeof( char ), __MIN( strlen( p_peek ), i_read )+1);\ 
    71         memcpy( p_str, p_peek, __MIN( strlen( p_peek ), i_read ) ); \ 
    72         p_str[__MIN( strlen( p_peek ), i_read )] = 0; \ 
     70        p_str = calloc( sizeof( char ), __MIN( strlen( (char*)p_peek ), i_read )+1);\ 
     71        memcpy( p_str, p_peek, __MIN( strlen( (char*)p_peek ), i_read ) ); \ 
     72        p_str[__MIN( strlen( (char*)p_peek ), i_read )] = 0; \ 
    7373        p_peek += strlen( p_str ) + 1; \ 
    7474        i_read -= strlen( p_str ) + 1; \ 
     
    8181 
    8282#define MP4_READBOX_ENTER( MP4_Box_data_TYPE_t ) \ 
    83     int64_t  i_read = p_box->i_size; \ 
     83    uint64_t  i_read = p_box->i_size; \ 
    8484    uint8_t *p_peek, *p_buff; \ 
    85     i_read = p_box->i_size; \ 
     85    int i_actually_read; \ 
    8686    if( !( p_peek = p_buff = malloc( i_read ) ) ) \ 
    8787    { \ 
    8888        return( 0 ); \ 
    8989    } \ 
    90     if( stream_Read( p_stream, p_peek, i_read ) < i_read )\ 
     90    i_actually_read = stream_Read( p_stream, p_peek, i_read ); \ 
     91    if( i_actually_read < 0 || (uint64_t)i_actually_read < i_read )\ 
    9192    { \ 
    9293        free( p_buff ); \ 
     
    818819} 
    819820 
    820 static int MP4_ReadLengthDescriptor( uint8_t **pp_peek, int64_t  *i_read ) 
     821static int MP4_ReadLengthDescriptor( uint8_t **pp_peek, uint64_t  *i_read ) 
    821822{ 
    822823    unsigned int i_b; 
     
    20712072static int MP4_ReadBox_0xa9xxx( stream_t *p_stream, MP4_Box_t *p_box ) 
    20722073{ 
    2073     int16_t i_length, i_dummy; 
     2074    uint16_t i_length, i_dummy; 
    20742075 
    20752076    MP4_READBOX_ENTER( MP4_Box_data_0xa9xxx_t ); 
  • modules/demux/mp4/libmp4.h

    r2cb472d r982c2c8  
    350350    uint32_t i_flags; 
    351351 
    352     unsigned char *psz_location; 
     352    char *psz_location; 
    353353 
    354354} MP4_Box_data_url_t; 
     
    359359    uint32_t i_flags; 
    360360 
    361     unsigned char *psz_name; 
    362     unsigned char *psz_location; 
     361    char *psz_name; 
     362    char *psz_location; 
    363363 
    364364} MP4_Box_data_urn_t; 
     
    652652    unsigned char i_language[3]; 
    653653 
    654     unsigned char *psz_notice; 
     654    char *psz_notice; 
    655655} MP4_Box_data_cprt_t; 
    656656 
  • modules/demux/playlist/dvb.c

    rf0ddd61 r982c2c8  
    100100    while( (psz_line = stream_ReadLine( p_demux->s )) ) 
    101101    { 
    102         playlist_item_t *p_item; 
    103102        char **ppsz_options = NULL; 
    104103        int  i, i_options = 0; 
  • modules/demux/playlist/gvp.c

    r1c98d75 r982c2c8  
    6767{ 
    6868    demux_t *p_demux = (demux_t *)p_this; 
    69     int i_size; 
    7069    byte_t *p_peek; 
    7170 
  • modules/demux/playlist/shoutcast.c

    r2d824ac r982c2c8  
    396396                    ( p_sys->b_adult || strcmp( psz_rt, "NC17" ) ) ) ) ) 
    397397                { 
    398                     playlist_item_t *p_item; 
    399398                    char *psz_mrl = NULL; 
    400399                    if( psz_rt || psz_load ) 
  • modules/misc/freetype.c

    r3580902 r982c2c8  
    755755 
    756756    { 
    757         char *p_in_buffer, *p_out_buffer; 
     757        char *p_out_buffer; 
     758        const char *p_in_buffer = psz_string; 
    758759        size_t i_in_bytes, i_out_bytes, i_out_bytes_left, i_ret; 
    759760        i_in_bytes = strlen( psz_string ); 
    760761        i_out_bytes = i_in_bytes * sizeof( uint32_t ); 
    761762        i_out_bytes_left = i_out_bytes; 
    762         p_in_buffer = psz_string; 
    763763        p_out_buffer = (char *)psz_unicode; 
    764764        i_ret = vlc_iconv( iconv_handle, &p_in_buffer, &i_in_bytes, 
  • modules/misc/logger.c

    r6f7916e r982c2c8  
    450450                             1000 ); 
    451451        fprintf( p_intf->p_sys->p_rrd, 
    452                    I64Fi":"I64Fd".%03u:"I64Fd".%03u:"I64Fd".%03u\n", 
     452                   I64Fi":%lld.%03u:%lld.%03u:%lld.%03u\n", 
    453453                   p_intf->p_sys->last_update/1000000, 
    454454                   din.quot, (unsigned int)din.rem, 
  • modules/misc/rtsp.c

    r6f3e4d5 r982c2c8  
    12921292    { 
    12931293        lldiv_t d = lldiv( p_media->i_length / 1000, 1000 ); 
    1294         p += sprintf( p, "a=range:npt=0-"I64Fd".%03u\r\n", d.quot, 
     1294        p += sprintf( p, "a=range:npt=0-%lld.%03u\r\n", d.quot, 
    12951295                      (unsigned)d.rem ); 
    12961296    } 
  • modules/video_chroma/i420_rgb8.c

    r2cb472d r982c2c8  
    4848 
    4949    vlc_bool_t  b_hscale;                         /* horizontal scaling type */ 
    50     unsigned int i_vscale;                          /* vertical scaling type */ 
     50    int i_vscale;                                 /* vertical scaling type */ 
    5151    unsigned int i_x, i_y;                /* horizontal and vertical indexes */ 
    5252    unsigned int i_real_y;                                          /* y % 4 */