Commit 8654a18f authored by Karl Heyes's avatar Karl Heyes

minor cleanups

svn path=/trunk/icecast/; revision=5168
parent 686bac60
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
AUTOMAKE_OPTIONS = foreign AUTOMAKE_OPTIONS = foreign
EXTRA_DIST = icecast.xml.in EXTRA_DIST = icecast.xml.in
DISTCLEANFILES = icecast.xml.dist
docdir = $(datadir)/$(PACKAGE)/doc docdir = $(datadir)/$(PACKAGE)/doc
doc_DATA = icecast.xml.dist doc_DATA = icecast.xml.dist
......
#ifndef __CONFIG_H__ #ifndef __CFGFILE_H__
#define __CONFIG_H__ #define __CFGFILE_H__
#define CONFIG_EINSANE -1 #define CONFIG_EINSANE -1
#define CONFIG_ENOROOT -2 #define CONFIG_ENOROOT -2
...@@ -138,7 +138,7 @@ void config_release_config(void); ...@@ -138,7 +138,7 @@ void config_release_config(void);
/* To be used ONLY in one-time startup code */ /* To be used ONLY in one-time startup code */
ice_config_t *config_get_config_unlocked(void); ice_config_t *config_get_config_unlocked(void);
#endif /* __CONFIG_H__ */ #endif /* __CFGFILE_H__ */
...@@ -673,8 +673,8 @@ static void _handle_get_request(connection_t *con, ...@@ -673,8 +673,8 @@ static void _handle_get_request(connection_t *con,
char *host; char *host;
int port; int port;
int i; int i;
char *serverhost; char *serverhost = NULL;
int serverport; int serverport = 0;
aliases *alias; aliases *alias;
ice_config_t *config; ice_config_t *config;
int client_limit; int client_limit;
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include <time.h> #include <time.h>
#include "connection.h" #include "connection.h"
......
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#include "refbuf.h" #include "refbuf.h"
#include "source.h" #include "source.h"
......
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