mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Add a couple of warnings, YP code not built and failed streamlist
from master server svn path=/icecast/trunk/icecast/; revision=7599
This commit is contained in:
parent
2a991af1a6
commit
ac73dff07a
@ -358,6 +358,14 @@ static int update_from_master(ice_config_t *config)
|
||||
free(authheader);
|
||||
free(data);
|
||||
|
||||
if (sock_read_line(mastersock, buf, sizeof(buf)) == 0 ||
|
||||
strncmp (buf, "HTTP/1.0 200", 12) != 0)
|
||||
{
|
||||
sock_close (mastersock);
|
||||
WARN0 ("Master rejected streamlist request");
|
||||
break;
|
||||
}
|
||||
|
||||
while (sock_read_line(mastersock, buf, sizeof(buf)))
|
||||
{
|
||||
if (!strlen(buf))
|
||||
|
4
src/yp.h
4
src/yp.h
@ -14,8 +14,6 @@
|
||||
#ifndef __YP_H__
|
||||
#define __YP_H__
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define YP_SERVER_NAME 1
|
||||
#define YP_SERVER_DESC 2
|
||||
#define YP_SERVER_GENRE 3
|
||||
@ -43,7 +41,7 @@ void yp_shutdown();
|
||||
#define yp_remove(x) do{}while(0)
|
||||
#define yp_touch(x) do{}while(0)
|
||||
#define yp_recheck_config(x) do{}while(0)
|
||||
#define yp_initialize() do{}while(0)
|
||||
#define yp_initialize() WARN0("YP server handling has been disabled")
|
||||
#define yp_shutdown() do{}while(0)
|
||||
|
||||
#endif /* USE_YP */
|
||||
|
Loading…
Reference in New Issue
Block a user