mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
small cleanups. fix buffer sizing, const and unused struct member
svn path=/icecast/trunk/icecast/; revision=8104
This commit is contained in:
parent
a55055cea8
commit
3026e1d089
@ -40,11 +40,6 @@ typedef struct _format_plugin_tag
|
|||||||
|
|
||||||
char *format_description;
|
char *format_description;
|
||||||
|
|
||||||
/* set this is the data format has a header that
|
|
||||||
** we must send before regular data
|
|
||||||
*/
|
|
||||||
int has_predata;
|
|
||||||
|
|
||||||
refbuf_t *(*get_buffer)(struct source_tag *);
|
refbuf_t *(*get_buffer)(struct source_tag *);
|
||||||
int (*write_buf_to_client)(struct _format_plugin_tag *format, client_t *client);
|
int (*write_buf_to_client)(struct _format_plugin_tag *format, client_t *client);
|
||||||
void (*write_buf_to_file)(struct source_tag *source, refbuf_t *refbuf);
|
void (*write_buf_to_file)(struct source_tag *source, refbuf_t *refbuf);
|
||||||
|
@ -813,10 +813,10 @@ static void _parse_audio_info (source_t *source, const char *s)
|
|||||||
}
|
}
|
||||||
if (len)
|
if (len)
|
||||||
{
|
{
|
||||||
char name[100], value[100];
|
char name[100], value[200];
|
||||||
char *esc;
|
char *esc;
|
||||||
|
|
||||||
sscanf (start, "%199[^=]=%199[^;\r\n]", name, value);
|
sscanf (start, "%99[^=]=%199[^;\r\n]", name, value);
|
||||||
esc = util_url_unescape (value);
|
esc = util_url_unescape (value);
|
||||||
if (esc)
|
if (esc)
|
||||||
{
|
{
|
||||||
|
@ -100,7 +100,7 @@ static int evict_cache_entry() {
|
|||||||
return oldest;
|
return oldest;
|
||||||
}
|
}
|
||||||
|
|
||||||
static xsltStylesheetPtr xslt_get_stylesheet(char *fn) {
|
static xsltStylesheetPtr xslt_get_stylesheet(const char *fn) {
|
||||||
int i;
|
int i;
|
||||||
int empty = -1;
|
int empty = -1;
|
||||||
struct stat file;
|
struct stat file;
|
||||||
@ -147,7 +147,7 @@ static xsltStylesheetPtr xslt_get_stylesheet(char *fn) {
|
|||||||
return cache[i].stylesheet;
|
return cache[i].stylesheet;
|
||||||
}
|
}
|
||||||
|
|
||||||
void xslt_transform(xmlDocPtr doc, char *xslfilename, client_t *client)
|
void xslt_transform(xmlDocPtr doc, const char *xslfilename, client_t *client)
|
||||||
{
|
{
|
||||||
xmlOutputBufferPtr outputBuffer;
|
xmlOutputBufferPtr outputBuffer;
|
||||||
xmlDocPtr res;
|
xmlDocPtr res;
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#include "stats.h"
|
#include "stats.h"
|
||||||
|
|
||||||
|
|
||||||
void xslt_transform(xmlDocPtr doc, char *xslfilename, client_t *client);
|
void xslt_transform(xmlDocPtr doc, const char *xslfilename, client_t *client);
|
||||||
void xslt_initialize();
|
void xslt_initialize();
|
||||||
void xslt_shutdown();
|
void xslt_shutdown();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user