summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/socket-client.c
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2007-02-14 12:13:49 +0000
committerPierre Ossman <ossman@cendio.se>2007-02-14 12:13:49 +0000
commitdf47c7b828c02afbabc4d024008fabb07a882397 (patch)
treed289d3dcfca3b95267c818669264c94ae9021e70 /src/pulsecore/socket-client.c
parent8bf7943e8e03922de8c4a0990057a6fbf07935c6 (diff)
Add a wrapper around close() to work around Windows' ass backwards way of
handling sockets. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1429 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/socket-client.c')
-rw-r--r--src/pulsecore/socket-client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pulsecore/socket-client.c b/src/pulsecore/socket-client.c
index 4ea81113..b99c8025 100644
--- a/src/pulsecore/socket-client.c
+++ b/src/pulsecore/socket-client.c
@@ -4,7 +4,7 @@
This file is part of PulseAudio.
Copyright 2004-2006 Lennart Poettering
- Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
+ Copyright 2006-2007 Pierre Ossman <ossman@cendio.se> for Cendio AB
PulseAudio is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
@@ -163,7 +163,7 @@ static void do_call(pa_socket_client *c) {
finish:
if (!io && c->fd >= 0)
- close(c->fd);
+ pa_close(c->fd);
c->fd = -1;
free_events(c);
@@ -310,7 +310,7 @@ static void socket_client_free(pa_socket_client *c) {
free_events(c);
if (c->fd >= 0)
- close(c->fd);
+ pa_close(c->fd);
#ifdef HAVE_LIBASYNCNS
if (c->asyncns_query)
@@ -403,7 +403,7 @@ static void timeout_cb(pa_mainloop_api *m, pa_time_event *e, const struct timeva
assert(c);
if (c->fd >= 0) {
- close(c->fd);
+ pa_close(c->fd);
c->fd = -1;
}