From 939dba945b2ad4701f4b0e48bd253bba632313ad Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Wed, 12 Sep 2007 02:08:27 +0000 Subject: [PATCH] fix compiler warning --- src/plugin_xmms/http.c | 3 ++- src/test_libFLAC/metadata_manip.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugin_xmms/http.c b/src/plugin_xmms/http.c index cf81bf11..af3235fb 100644 --- a/src/plugin_xmms/http.c +++ b/src/plugin_xmms/http.c @@ -355,7 +355,8 @@ static int http_connect (gchar *url_, gboolean head, guint64 offset) gchar line[1024], *user, *pass, *host, *filename, *status, *url, *temp, *file; gchar *chost; - gint cnt, error, err_len, port, cport; + gint cnt, error, port, cport; + socklen_t err_len; gboolean redirect; int udp_sock = 0; fd_set set; diff --git a/src/test_libFLAC/metadata_manip.c b/src/test_libFLAC/metadata_manip.c index 387ec32b..b3875318 100644 --- a/src/test_libFLAC/metadata_manip.c +++ b/src/test_libFLAC/metadata_manip.c @@ -315,7 +315,7 @@ static FLAC__bool write_chain_(FLAC__Metadata_Chain *chain, FLAC__bool use_paddi if(FLAC__metadata_chain_check_if_tempfile_needed(chain, use_padding)) { struct stat stats; - FILE *file, *tempfile; + FILE *file, *tempfile = 0; char *tempfilename; if(preserve_file_stats) { if(!get_file_stats_(filename, &stats))