mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
small fixes
svn path=/icecast/trunk/icecast/; revision=8596
This commit is contained in:
parent
1c5f23673b
commit
6c4c02d482
@ -23,9 +23,9 @@
|
|||||||
<p>If icecast has been built with YP support, then the following configuration options control the YP directory settings:</p>
|
<p>If icecast has been built with YP support, then the following configuration options control the YP directory settings:</p>
|
||||||
<pre>
|
<pre>
|
||||||
<directory>
|
<directory>
|
||||||
<yp-url-timeout>15<yp-url-timeout>
|
<yp-url-timeout>15</yp-url-timeout>
|
||||||
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi<yp-url>
|
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
|
||||||
<directory>
|
</directory>
|
||||||
</pre>
|
</pre>
|
||||||
<p>Multiple directory XML chunks can be specified in order to be listed in multiple directories.</p>
|
<p>Multiple directory XML chunks can be specified in order to be listed in multiple directories.</p>
|
||||||
<br />
|
<br />
|
||||||
|
@ -651,7 +651,7 @@ static void command_show_listeners(client_t *client, source_t *source,
|
|||||||
xmlNewChild(listenernode, NULL, "UserAgent", "Unknown");
|
xmlNewChild(listenernode, NULL, "UserAgent", "Unknown");
|
||||||
}
|
}
|
||||||
memset(buf, '\000', sizeof(buf));
|
memset(buf, '\000', sizeof(buf));
|
||||||
snprintf(buf, sizeof(buf)-1, "%ld", now - current->con->con_time);
|
snprintf(buf, sizeof(buf), "%lu", (unsigned long)(now - current->con->con_time));
|
||||||
xmlNewChild(listenernode, NULL, "Connected", buf);
|
xmlNewChild(listenernode, NULL, "Connected", buf);
|
||||||
memset(buf, '\000', sizeof(buf));
|
memset(buf, '\000', sizeof(buf));
|
||||||
snprintf(buf, sizeof(buf)-1, "%lu", current->con->id);
|
snprintf(buf, sizeof(buf)-1, "%lu", current->con->id);
|
||||||
|
@ -241,7 +241,7 @@ static void update_comments (source_t *source)
|
|||||||
char *title = ogg_info->title;
|
char *title = ogg_info->title;
|
||||||
char *artist = ogg_info->artist;
|
char *artist = ogg_info->artist;
|
||||||
char *metadata = NULL;
|
char *metadata = NULL;
|
||||||
unsigned int len = 0;
|
unsigned int len = 1; /* space for the nul byte at least */
|
||||||
ogg_codec_t *codec;
|
ogg_codec_t *codec;
|
||||||
char codec_names [100] = "";
|
char codec_names [100] = "";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user