Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dvblast
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
dvblast
Commits
28f81122
Commit
28f81122
authored
Aug 22, 2011
by
Georgi Chorbadzhiyski
Committed by
Christophe Massiot
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dvblast.h: Annotate functions with printf stype params and use -Wformat-security.
parent
d62978ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
Makefile
Makefile
+1
-1
demux.c
demux.c
+1
-0
dvblast.h
dvblast.h
+5
-5
No files found.
Makefile
View file @
28f81122
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
VERSION
=
2.0.0
VERSION
=
2.0.0
TOPDIR
=
`
basename
${PWD}
`
TOPDIR
=
`
basename
${PWD}
`
CFLAGS
+=
-Wall
-O3
-fomit-frame-pointer
CFLAGS
+=
-Wall
-
Wformat-security
-
O3
-fomit-frame-pointer
CFLAGS
+=
-g
CFLAGS
+=
-g
LDLIBS
+=
-lrt
LDLIBS
+=
-lrt
LDLIBS_DVBLAST
+=
-lpthread
LDLIBS_DVBLAST
+=
-lpthread
...
...
demux.c
View file @
28f81122
...
@@ -1638,6 +1638,7 @@ char *demux_Iconv(void *_unused, const char *psz_encoding,
...
@@ -1638,6 +1638,7 @@ char *demux_Iconv(void *_unused, const char *psz_encoding,
* This code is from biTStream's examples and is under the WTFPL (see
* This code is from biTStream's examples and is under the WTFPL (see
* LICENSE.WTFPL).
* LICENSE.WTFPL).
*****************************************************************************/
*****************************************************************************/
__attribute__
((
format
(
printf
,
2
,
3
)))
static
void
demux_Print
(
void
*
_unused
,
const
char
*
psz_format
,
...)
static
void
demux_Print
(
void
*
_unused
,
const
char
*
psz_format
,
...)
{
{
char
psz_fmt
[
strlen
(
psz_format
)
+
2
];
char
psz_fmt
[
strlen
(
psz_format
)
+
2
];
...
...
dvblast.h
View file @
28f81122
...
@@ -192,11 +192,11 @@ void msg_Connect( const char *ident );
...
@@ -192,11 +192,11 @@ void msg_Connect( const char *ident );
void
msg_Disconnect
(
void
);
void
msg_Disconnect
(
void
);
/* */
/* */
void
msg_Info
(
void
*
_unused
,
const
char
*
psz_format
,
...
);
__attribute__
((
format
(
printf
,
2
,
3
)))
void
msg_Info
(
void
*
_unused
,
const
char
*
psz_format
,
...
);
void
msg_Err
(
void
*
_unused
,
const
char
*
psz_format
,
...
);
__attribute__
((
format
(
printf
,
2
,
3
)))
void
msg_Err
(
void
*
_unused
,
const
char
*
psz_format
,
...
);
void
msg_Warn
(
void
*
_unused
,
const
char
*
psz_format
,
...
);
__attribute__
((
format
(
printf
,
2
,
3
)))
void
msg_Warn
(
void
*
_unused
,
const
char
*
psz_format
,
...
);
void
msg_Dbg
(
void
*
_unused
,
const
char
*
psz_format
,
...
);
__attribute__
((
format
(
printf
,
2
,
3
)))
void
msg_Dbg
(
void
*
_unused
,
const
char
*
psz_format
,
...
);
void
msg_Raw
(
void
*
_unused
,
const
char
*
psz_format
,
...
);
__attribute__
((
format
(
printf
,
2
,
3
)))
void
msg_Raw
(
void
*
_unused
,
const
char
*
psz_format
,
...
);
/* */
/* */
mtime_t
mdate
(
void
);
mtime_t
mdate
(
void
);
...
...
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