mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
fixing some compiler warnings
svn path=/icecast/trunk/icecast/; revision=19280
This commit is contained in:
parent
78ca9bd2ba
commit
fc63b67b87
@ -232,7 +232,9 @@ void config_clear(ice_config_t *c)
|
||||
relay_server *relay, *nextrelay;
|
||||
mount_proxy *mount, *nextmount;
|
||||
aliases *alias, *nextalias;
|
||||
#ifdef USE_YP
|
||||
int i;
|
||||
#endif
|
||||
|
||||
free(c->config_filename);
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ogg/ogg.h>
|
||||
|
||||
typedef struct source_tag source_t;
|
||||
|
@ -505,12 +505,17 @@ static inline void _build_headers_loop(char **ret, size_t *len, ice_config_htt
|
||||
name = header->name;
|
||||
|
||||
/* handle type of the header */
|
||||
value = NULL;
|
||||
switch (header->type) {
|
||||
case HTTP_HEADER_TYPE_STATIC:
|
||||
value = header->value;
|
||||
break;
|
||||
}
|
||||
|
||||
/* check data */
|
||||
if (!name || !value)
|
||||
continue;
|
||||
|
||||
/* append the header to the buffer */
|
||||
headerlen = strlen(name) + strlen(value) + 4;
|
||||
*len += headerlen;
|
||||
|
Loading…
Reference in New Issue
Block a user