1
0
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:
Karl Heyes 2004-10-26 14:21:36 +00:00
parent a55055cea8
commit 3026e1d089
4 changed files with 5 additions and 10 deletions

View File

@ -40,11 +40,6 @@ typedef struct _format_plugin_tag
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 *);
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);

View File

@ -813,10 +813,10 @@ static void _parse_audio_info (source_t *source, const char *s)
}
if (len)
{
char name[100], value[100];
char name[100], value[200];
char *esc;
sscanf (start, "%199[^=]=%199[^;\r\n]", name, value);
sscanf (start, "%99[^=]=%199[^;\r\n]", name, value);
esc = util_url_unescape (value);
if (esc)
{

View File

@ -100,7 +100,7 @@ static int evict_cache_entry() {
return oldest;
}
static xsltStylesheetPtr xslt_get_stylesheet(char *fn) {
static xsltStylesheetPtr xslt_get_stylesheet(const char *fn) {
int i;
int empty = -1;
struct stat file;
@ -147,7 +147,7 @@ static xsltStylesheetPtr xslt_get_stylesheet(char *fn) {
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;
xmlDocPtr res;

View File

@ -34,7 +34,7 @@
#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_shutdown();