mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Update: Fixed some compiler warnings
This commit is contained in:
parent
66375b57e4
commit
e6ab93d437
@ -280,7 +280,7 @@ static int _start_logging(void)
|
|||||||
char fn_error[FILENAME_MAX];
|
char fn_error[FILENAME_MAX];
|
||||||
char fn_access[FILENAME_MAX];
|
char fn_access[FILENAME_MAX];
|
||||||
char fn_playlist[FILENAME_MAX];
|
char fn_playlist[FILENAME_MAX];
|
||||||
char buf[1024];
|
char buf[FILENAME_MAX+1024];
|
||||||
int log_to_stderr;
|
int log_to_stderr;
|
||||||
|
|
||||||
ice_config_t *config = config_get_config_unlocked();
|
ice_config_t *config = config_get_config_unlocked();
|
||||||
@ -532,7 +532,7 @@ static void _ch_root_uid_setup(void)
|
|||||||
|
|
||||||
static inline void __log_system_name(void) {
|
static inline void __log_system_name(void) {
|
||||||
char hostname[80] = "(unknown)";
|
char hostname[80] = "(unknown)";
|
||||||
char system[128] = "(unknown)";
|
char system[1024] = "(unknown)";
|
||||||
int have_hostname = 0;
|
int have_hostname = 0;
|
||||||
#ifdef HAVE_UNAME
|
#ifdef HAVE_UNAME
|
||||||
struct utsname utsname;
|
struct utsname utsname;
|
||||||
|
@ -641,7 +641,7 @@ static inline void __format_time(char * buffer, size_t len, const char * format)
|
|||||||
|
|
||||||
void stats_event_time (const char *mount, const char *name)
|
void stats_event_time (const char *mount, const char *name)
|
||||||
{
|
{
|
||||||
char buffer[100];
|
char buffer[256];
|
||||||
|
|
||||||
__format_time(buffer, sizeof(buffer), "%a, %d %b %Y %H:%M:%S ");
|
__format_time(buffer, sizeof(buffer), "%a, %d %b %Y %H:%M:%S ");
|
||||||
stats_event (mount, name, buffer);
|
stats_event (mount, name, buffer);
|
||||||
@ -650,7 +650,7 @@ void stats_event_time (const char *mount, const char *name)
|
|||||||
|
|
||||||
void stats_event_time_iso8601 (const char *mount, const char *name)
|
void stats_event_time_iso8601 (const char *mount, const char *name)
|
||||||
{
|
{
|
||||||
char buffer[100];
|
char buffer[256];
|
||||||
|
|
||||||
__format_time(buffer, sizeof(buffer), "%Y-%m-%dT%H:%M:%S");
|
__format_time(buffer, sizeof(buffer), "%Y-%m-%dT%H:%M:%S");
|
||||||
stats_event (mount, name, buffer);
|
stats_event (mount, name, buffer);
|
||||||
|
Loading…
Reference in New Issue
Block a user