~ubuntu-branches/ubuntu/wily/xmms2/wily

« back to all changes in this revision

Viewing changes to src/lib/xmmsipc/socket_tcp.c

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2008-07-04 16:23:34 UTC
  • mfrom: (1.1.5 upstream) (6.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080704162334-b3esbkcapt8wbrk4
Tags: 0.5DrLecter-2ubuntu1
* Merge from debian unstable (LP: #241098), remaining changes:
  + debian/control:
    + Update Maintainer field
    + add lpia to xmms2-plugin-alsa supported architectures
    + Added liba52-0.7.4-dev to build depends
  + debian/rules: Added patch, patch-stamp and unpatch
  + changed 01_gcc4.3.patch:
    + src/include/xmmsclient/xmmsclient++/helpers.h: Added #include <climits>
* New upstream relase fixes LP: #212566, #222341

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  XMMS2 - X Music Multiplexer System
2
 
 *  Copyright (C) 2003-2007 XMMS2 Team
 
2
 *  Copyright (C) 2003-2008 XMMS2 Team
3
3
 *
4
4
 *  PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!!
5
5
 *
82
82
        hints.ai_socktype = SOCK_STREAM;
83
83
        hints.ai_protocol = 0;
84
84
 
85
 
        if ((gai_errno = getaddrinfo (url->host[0] ? url->host : NULL, url->port[0] ? url->port : XMMS_STRINGIFY (XMMS_DEFAULT_TCP_PORT), &hints, &addrinfos))) {
 
85
        if ((gai_errno = xmms_getaddrinfo (url->host[0] ? url->host : NULL, url->port[0] ? url->port : XMMS_STRINGIFY (XMMS_DEFAULT_TCP_PORT), &hints, &addrinfos))) {
86
86
                return NULL;
87
87
        }
88
88
 
104
104
                close (fd);
105
105
        }
106
106
 
107
 
        freeaddrinfo (addrinfos);
 
107
        xmms_freeaddrinfo (addrinfos);
108
108
 
109
109
        if (!addrinfo) {
110
110
                return NULL;
186
186
        hints.ai_socktype = SOCK_STREAM;
187
187
        hints.ai_protocol = 0;
188
188
 
189
 
        if ((gai_errno = getaddrinfo (url->host[0] ? url->host : NULL, url->port[0] ? url->port : XMMS_STRINGIFY (XMMS_DEFAULT_TCP_PORT), &hints, &addrinfos))) {
 
189
        if ((gai_errno = xmms_getaddrinfo (url->host[0] ? url->host : NULL, url->port[0] ? url->port : XMMS_STRINGIFY (XMMS_DEFAULT_TCP_PORT), &hints, &addrinfos))) {
190
190
                return NULL;
191
191
        }
192
192
 
211
211
                close (fd);
212
212
        }
213
213
 
214
 
        freeaddrinfo (addrinfos);
 
214
        xmms_freeaddrinfo (addrinfos);
215
215
 
216
216
        if (!addrinfo) {
217
217
                return NULL;