Changeset 2049498ba80921715a6999caa9617b5eb2e6c300
- 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
| rb2656b1 |
r2049498 |
|
| 7 | 7 | * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> |
|---|
| 8 | 8 | * Samuel Hocevar <sam@zoy.org> |
|---|
| | 9 | * Gildas Bazin <gbazin@videolan.org> |
|---|
| 9 | 10 | * |
|---|
| 10 | 11 | * This program is free software; you can redistribute it and/or modify |
|---|
| … | … | |
| 145 | 146 | char * vlc_strcasestr( const char *psz_big, const char *psz_little ) |
|---|
| 146 | 147 | { |
|---|
| 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; |
|---|
| 150 | 151 | |
|---|
| 151 | 152 | while( *p_pos ) |
|---|
| … | … | |
| 154 | 155 | { |
|---|
| 155 | 156 | char * psz_cur1 = p_pos + 1; |
|---|
| 156 | | char * psz_cur2 = psz_little + 1; |
|---|
| | 157 | char * psz_cur2 = (char *)psz_little + 1; |
|---|
| 157 | 158 | while( *psz_cur1 && *psz_cur2 && |
|---|
| 158 | 159 | toupper( *psz_cur1 ) == toupper( *psz_cur2 ) ) |
|---|
| … | … | |
| 463 | 464 | return iconv( cd, inbuf, inbytesleft, outbuf, outbytesleft ); |
|---|
| 464 | 465 | #else |
|---|
| 465 | | int i_bytes = __MIN(inbytesleft, outbytesleft); |
|---|
| | 466 | int i_bytes = __MIN(*inbytesleft, *outbytesleft); |
|---|
| 466 | 467 | if( !inbuf || !outbuf || !i_bytes ) return (size_t)(-1); |
|---|
| 467 | 468 | memcpy( *outbuf, *inbuf, i_bytes ); |
|---|