summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-10-07 14:56:51 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-10-07 14:56:51 +0000
commit2cad7aea1c3c0034ccab3578c624469088651a41 (patch)
treebcdbbc70eab85b96ae0e524f9f404cbf216f7275
parentb14520626762d8110b43c0632f9ee0d50f71d73b (diff)
downloadxine-lib-2cad7aea1c3c0034ccab3578c624469088651a41.tar.gz
xine-lib-2cad7aea1c3c0034ccab3578c624469088651a41.tar.bz2
fix some compiler warnings
CVS patchset: 5461 CVS date: 2003/10/07 14:56:51
-rw-r--r--src/xine-engine/io_helper.c4
-rw-r--r--src/xine-engine/vo_scale.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/xine-engine/io_helper.c b/src/xine-engine/io_helper.c
index 7b190b2c5..0ed24e543 100644
--- a/src/xine-engine/io_helper.c
+++ b/src/xine-engine/io_helper.c
@@ -45,7 +45,8 @@
#define XIO_POLLING_INTERVAL 50000 /* usec */
-int xio_tcp_connect_ipv4(xine_stream_t *stream, const char *host, int port) {
+#ifndef ENABLE_IPV6
+static int xio_tcp_connect_ipv4(xine_stream_t *stream, const char *host, int port) {
struct hostent *h;
int i, s;
@@ -106,6 +107,7 @@ int xio_tcp_connect_ipv4(xine_stream_t *stream, const char *host, int port) {
}
return -1;
}
+#endif
int xio_tcp_connect(xine_stream_t *stream, const char *host, int port) {
diff --git a/src/xine-engine/vo_scale.c b/src/xine-engine/vo_scale.c
index dc06e93e3..10a8e5102 100644
--- a/src/xine-engine/vo_scale.c
+++ b/src/xine-engine/vo_scale.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: vo_scale.c,v 1.24 2003/10/04 11:46:01 komadori Exp $
+ * $Id: vo_scale.c,v 1.25 2003/10/07 14:56:51 mroi Exp $
*
* Contains common code to calculate video scaling parameters.
* In short, it will map frame dimensions to screen/window size.
@@ -44,7 +44,6 @@
void vo_scale_compute_ideal_size (vo_scale_t *this) {
double image_ratio, desired_ratio;
- static int warning_issued = 0;
if (this->scaling_disabled) {