From 1da48cfcb0779dfb88212b97289bb8d5dc96cfa6 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 28 May 2001 02:54:09 +0000 Subject: [PATCH] * Of course my Win32 patch broke the Un*x version. --- src/misc/netutils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/misc/netutils.c b/src/misc/netutils.c index dd3b27827c..3d21cae746 100644 --- a/src/misc/netutils.c +++ b/src/misc/netutils.c @@ -2,7 +2,7 @@ * netutils.c: various network functions ***************************************************************************** * Copyright (C) 1999, 2000, 2001 VideoLAN - * $Id: netutils.c,v 1.32 2001/05/28 02:44:39 sam Exp $ + * $Id: netutils.c,v 1.33 2001/05/28 02:54:09 sam Exp $ * * Authors: Vincent Seguin * Benoit Steiner @@ -290,9 +290,9 @@ int network_ChannelJoin( int i_channel ) sa_server.sin_family = AF_INET; sa_server.sin_port = htons( INPUT_CHANNEL_PORT_DEFAULT ); #ifdef HAVE_ARPA_INET_H - if( !inet_aton( psz_server, &p_socket->sin_addr) ) + inet_aton( INPUT_CHANNEL_SERVER_DEFAULT, &sa_server.sin_addr ); #else - if( (sa_server.sin_addr.s_addr = inet_addr( INPUT_CHANNEL_SERVER_DEFAULT )) == -1 ) + sa_server.sin_addr.s_addr = inet_addr( INPUT_CHANNEL_SERVER_DEFAULT ); #endif /*