Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
fc63b67b
Commit
fc63b67b
authored
Nov 07, 2014
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing some compiler warnings
svn path=/icecast/trunk/icecast/; revision=19280
parent
78ca9bd2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
src/cfgfile.c
src/cfgfile.c
+2
-0
src/format_opus.c
src/format_opus.c
+1
-0
src/util.c
src/util.c
+5
-0
No files found.
src/cfgfile.c
View file @
fc63b67b
...
@@ -232,7 +232,9 @@ void config_clear(ice_config_t *c)
...
@@ -232,7 +232,9 @@ void config_clear(ice_config_t *c)
relay_server
*
relay
,
*
nextrelay
;
relay_server
*
relay
,
*
nextrelay
;
mount_proxy
*
mount
,
*
nextmount
;
mount_proxy
*
mount
,
*
nextmount
;
aliases
*
alias
,
*
nextalias
;
aliases
*
alias
,
*
nextalias
;
#ifdef USE_YP
int
i
;
int
i
;
#endif
free
(
c
->
config_filename
);
free
(
c
->
config_filename
);
...
...
src/format_opus.c
View file @
fc63b67b
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#endif
#endif
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <ogg/ogg.h>
#include <ogg/ogg.h>
typedef
struct
source_tag
source_t
;
typedef
struct
source_tag
source_t
;
...
...
src/util.c
View file @
fc63b67b
...
@@ -505,12 +505,17 @@ static inline void _build_headers_loop(char **ret, size_t *len, ice_config_htt
...
@@ -505,12 +505,17 @@ static inline void _build_headers_loop(char **ret, size_t *len, ice_config_htt
name
=
header
->
name
;
name
=
header
->
name
;
/* handle type of the header */
/* handle type of the header */
value
=
NULL
;
switch
(
header
->
type
)
{
switch
(
header
->
type
)
{
case
HTTP_HEADER_TYPE_STATIC
:
case
HTTP_HEADER_TYPE_STATIC
:
value
=
header
->
value
;
value
=
header
->
value
;
break
;
break
;
}
}
/* check data */
if
(
!
name
||
!
value
)
continue
;
/* append the header to the buffer */
/* append the header to the buffer */
headerlen
=
strlen
(
name
)
+
strlen
(
value
)
+
4
;
headerlen
=
strlen
(
name
)
+
strlen
(
value
)
+
4
;
*
len
+=
headerlen
;
*
len
+=
headerlen
;
...
...
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