summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Frederik Carlier2018-10-19 17:39:05 +0200
committerGravatar Frederik Carlier2018-10-19 17:40:18 +0200
commit0212e76db589837a39b251567c8ae2985a1a7e3e (patch)
tree5e0f60a26f74f7890023ca52f9cec8b1df7f4e4c
parent604c250b969e20534c18300df369291f1ed9fa2d (diff)
downloadlibusbmuxd-0212e76db589837a39b251567c8ae2985a1a7e3e.tar.gz
libusbmuxd-0212e76db589837a39b251567c8ae2985a1a7e3e.tar.bz2
Use socket_close instead of close to close a socket
-rw-r--r--common/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/socket.c b/common/socket.c
index a2f8eec..bbc3de2 100644
--- a/common/socket.c
+++ b/common/socket.c
@@ -307,7 +307,7 @@ int socket_connect(const char *addr, uint16_t port)
}
}
}
- close(sfd);
+ socket_close(sfd);
}
freeaddrinfo(result);