aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnoop C S <anoopcs@redhat.com>2017-08-29 14:29:16 +0530
committerAndreas Schneider <asn@samba.org>2018-05-02 14:23:34 +0200
commit548f4d062b06e2cff7fadb0d1ee7de34c1223a8a (patch)
treed06265dea1bc281b1c80f70e3ad2ee8c69927d37 /src
parentd0b13efcd590722784baaca85bb5c9b0d5ee2d92 (diff)
downloadsocket_wrapper-548f4d062b06e2cff7fadb0d1ee7de34c1223a8a.tar.gz
socket_wrapper-548f4d062b06e2cff7fadb0d1ee7de34c1223a8a.tar.xz
socket_wrapper-548f4d062b06e2cff7fadb0d1ee7de34c1223a8a.zip
swrap: Remove swrap_first_free_index
swrap_first_free_index is no longer used as the whole logic now implemented within swrap_create_socket. Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/socket_wrapper.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index 243a938..ad83111 100644
--- a/src/socket_wrapper.c
+++ b/src/socket_wrapper.c
@@ -1374,28 +1374,6 @@ static unsigned int socket_wrapper_default_iface(void)
return 1;/* 127.0.0.1 */
}
-/*
- * Return the first free entry (if any) and make
- * it re-usable again (by nulling it out)
- */
-static int socket_wrapper_first_free_index(void)
-{
- struct socket_info *si = NULL;
- int next_free;
-
- if (first_free == -1) {
- errno = ENFILE;
- return -1;
- }
-
- si = swrap_get_socket_info(first_free);
- next_free = swrap_get_next_free(si);
- ZERO_STRUCTP(si);
- swrap_set_next_free(si, next_free);
-
- return first_free;
-}
-
static int swrap_add_socket_info(struct socket_info *si_input)
{
struct socket_info *si = NULL;