Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
fc16dcf8
Commit
fc16dcf8
authored
Aug 23, 2003
by
Loïc Minier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/configuration.c: fix a couple of signed/unsigned warns
parent
5ecf89e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
src/misc/configuration.c
src/misc/configuration.c
+13
-8
No files found.
src/misc/configuration.c
View file @
fc16dcf8
...
...
@@ -2,7 +2,7 @@
* configuration.c management of the modules configuration
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: configuration.c,v 1.6
3 2003/08/23 14:26:34
lool Exp $
* $Id: configuration.c,v 1.6
4 2003/08/23 14:38:50
lool Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -1520,27 +1520,32 @@ static char *ConfigKeyToString( int i_key )
{
char
*
psz_key
=
malloc
(
100
);
char
*
p
;
int
i
;
size_t
index
;
if
(
!
psz_key
)
{
return
NULL
;
}
*
psz_key
=
'\0'
;
p
=
psz_key
;
for
(
i
=
0
;
i
<
sizeof
(
modifiers
)
/
sizeof
(
key_descriptor_t
);
i
++
)
for
(
index
=
0
;
index
<
(
sizeof
(
modifiers
)
/
sizeof
(
key_descriptor_t
));
index
++
)
{
if
(
i_key
&
modifiers
[
i
].
i_key_code
)
if
(
i_key
&
modifiers
[
i
ndex
].
i_key_code
)
{
p
+=
sprintf
(
p
,
"%s-"
,
modifiers
[
i
].
psz_key_string
);
p
+=
sprintf
(
p
,
"%s-"
,
modifiers
[
i
ndex
].
psz_key_string
);
}
}
for
(
i
=
0
;
i
<
sizeof
(
keys
)
/
sizeof
(
key_descriptor_t
);
i
++
)
for
(
index
=
0
;
index
<
(
sizeof
(
keys
)
/
sizeof
(
key_descriptor_t
));
index
++
)
{
if
(
(
i_key
&
~
KEY_MODIFIER
)
==
keys
[
i
].
i_key_code
)
if
(
(
int
)(
i_key
&
~
KEY_MODIFIER
)
==
keys
[
index
].
i_key_code
)
{
p
+=
sprintf
(
p
,
"%s"
,
keys
[
i
].
psz_key_string
);
p
+=
sprintf
(
p
,
"%s"
,
keys
[
i
ndex
].
psz_key_string
);
break
;
}
}
return
psz_key
;
}
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