Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
2049498b
Commit
2049498b
authored
Oct 01, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/extras/libc.c: shut up compiler warnings.
parent
b2656b12
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/extras/libc.c
src/extras/libc.c
+5
-4
No files found.
src/extras/libc.c
View file @
2049498b
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
* Gildas Bazin <gbazin@videolan.org>
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
...
@@ -144,16 +145,16 @@ int vlc_strncasecmp( const char *s1, const char *s2, size_t n )
...
@@ -144,16 +145,16 @@ int vlc_strncasecmp( const char *s1, const char *s2, size_t n )
#if !defined( HAVE_STRCASESTR ) && !defined( HAVE_STRISTR )
#if !defined( HAVE_STRCASESTR ) && !defined( HAVE_STRISTR )
char
*
vlc_strcasestr
(
const
char
*
psz_big
,
const
char
*
psz_little
)
char
*
vlc_strcasestr
(
const
char
*
psz_big
,
const
char
*
psz_little
)
{
{
char
*
p_pos
=
psz_big
;
char
*
p_pos
=
(
char
*
)
psz_big
;
if
(
!
psz_big
||
!
psz_little
||
!*
psz_little
)
return
p
sz_big
;
if
(
!
psz_big
||
!
psz_little
||
!*
psz_little
)
return
p
_pos
;
while
(
*
p_pos
)
while
(
*
p_pos
)
{
{
if
(
toupper
(
*
p_pos
)
==
toupper
(
*
psz_little
)
)
if
(
toupper
(
*
p_pos
)
==
toupper
(
*
psz_little
)
)
{
{
char
*
psz_cur1
=
p_pos
+
1
;
char
*
psz_cur1
=
p_pos
+
1
;
char
*
psz_cur2
=
psz_little
+
1
;
char
*
psz_cur2
=
(
char
*
)
psz_little
+
1
;
while
(
*
psz_cur1
&&
*
psz_cur2
&&
while
(
*
psz_cur1
&&
*
psz_cur2
&&
toupper
(
*
psz_cur1
)
==
toupper
(
*
psz_cur2
)
)
toupper
(
*
psz_cur1
)
==
toupper
(
*
psz_cur2
)
)
{
{
...
@@ -462,7 +463,7 @@ size_t vlc_iconv( vlc_iconv_t cd, char **inbuf, size_t *inbytesleft,
...
@@ -462,7 +463,7 @@ size_t vlc_iconv( vlc_iconv_t cd, char **inbuf, size_t *inbytesleft,
#if defined(HAVE_ICONV)
#if defined(HAVE_ICONV)
return
iconv
(
cd
,
inbuf
,
inbytesleft
,
outbuf
,
outbytesleft
);
return
iconv
(
cd
,
inbuf
,
inbytesleft
,
outbuf
,
outbytesleft
);
#else
#else
int
i_bytes
=
__MIN
(
inbytesleft
,
outbytesleft
);
int
i_bytes
=
__MIN
(
*
inbytesleft
,
*
outbytesleft
);
if
(
!
inbuf
||
!
outbuf
||
!
i_bytes
)
return
(
size_t
)(
-
1
);
if
(
!
inbuf
||
!
outbuf
||
!
i_bytes
)
return
(
size_t
)(
-
1
);
memcpy
(
*
outbuf
,
*
inbuf
,
i_bytes
);
memcpy
(
*
outbuf
,
*
inbuf
,
i_bytes
);
inbuf
+=
i_bytes
;
inbuf
+=
i_bytes
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment