Changeset 2049498ba80921715a6999caa9617b5eb2e6c300

Show
Ignore:
Timestamp:
10/01/04 13:23:06 (4 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1096629786 +0000
git-parent:

[b2656b1265dafffbe4d03f539399dceb639cc014]

git-author:
Gildas Bazin <gbazin@videolan.org> 1096629786 +0000
Message:

* src/extras/libc.c: shut up compiler warnings.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/extras/libc.c

    rb2656b1 r2049498  
    77 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> 
    88 *          Samuel Hocevar <sam@zoy.org> 
     9 *          Gildas Bazin <gbazin@videolan.org> 
    910 * 
    1011 * This program is free software; you can redistribute it and/or modify 
     
    145146char * vlc_strcasestr( const char *psz_big, const char *psz_little ) 
    146147{ 
    147     char *p_pos = psz_big; 
    148  
    149     if( !psz_big || !psz_little || !*psz_little ) return psz_big
     148    char *p_pos = (char *)psz_big; 
     149 
     150    if( !psz_big || !psz_little || !*psz_little ) return p_pos
    150151  
    151152    while( *p_pos )  
     
    154155        { 
    155156            char * psz_cur1 = p_pos + 1; 
    156             char * psz_cur2 = psz_little + 1; 
     157            char * psz_cur2 = (char *)psz_little + 1; 
    157158            while( *psz_cur1 && *psz_cur2 && 
    158159                   toupper( *psz_cur1 ) == toupper( *psz_cur2 ) ) 
     
    463464    return iconv( cd, inbuf, inbytesleft, outbuf, outbytesleft ); 
    464465#else 
    465     int i_bytes = __MIN(inbytesleft, outbytesleft); 
     466    int i_bytes = __MIN(*inbytesleft, *outbytesleft); 
    466467    if( !inbuf || !outbuf || !i_bytes ) return (size_t)(-1); 
    467468    memcpy( *outbuf, *inbuf, i_bytes );