Commit ac73dff0 authored by Karl Heyes's avatar Karl Heyes

Add a couple of warnings, YP code not built and failed streamlist

from master server

svn path=/icecast/trunk/icecast/; revision=7599
parent 2a991af1
......@@ -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))
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment