summaryrefslogtreecommitdiff
path: root/source4/lib/socket
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-05-15 20:16:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:44 -0500
commit5b18cf22680c76abb1262a6b75a30b8a37899467 (patch)
treeb845941a1bac81eceaba11c7f885735e1ace20e2 /source4/lib/socket
parent51b0f62b8f0d6350b7706c5b7fd52f856c2756de (diff)
downloadsamba-5b18cf22680c76abb1262a6b75a30b8a37899467.tar.gz
samba-5b18cf22680c76abb1262a6b75a30b8a37899467.tar.bz2
samba-5b18cf22680c76abb1262a6b75a30b8a37899467.zip
r6795: Make some functions static and remove some unused ones.
(This used to be commit 46509eb89980bfe6dabd71264d570ea356ee5a22)
Diffstat (limited to 'source4/lib/socket')
-rw-r--r--source4/lib/socket/socket.c6
-rw-r--r--source4/lib/socket/socket.h1
2 files changed, 0 insertions, 7 deletions
diff --git a/source4/lib/socket/socket.c b/source4/lib/socket/socket.c
index 86e2f05962..13d1640f51 100644
--- a/source4/lib/socket/socket.c
+++ b/source4/lib/socket/socket.c
@@ -87,12 +87,6 @@ NTSTATUS socket_create(const char *name, enum socket_type type,
return socket_create_with_ops(NULL, ops, new_sock, type, flags);
}
-void socket_destroy(struct socket_context *sock)
-{
- /* the close is handled by the destructor */
- talloc_free(sock);
-}
-
NTSTATUS socket_connect(struct socket_context *sock,
const char *my_address, int my_port,
const char *server_address, int server_port,
diff --git a/source4/lib/socket/socket.h b/source4/lib/socket/socket.h
index b1fae9ac56..bce64f9f6c 100644
--- a/source4/lib/socket/socket.h
+++ b/source4/lib/socket/socket.h
@@ -107,7 +107,6 @@ struct socket_context {
/* prototypes */
NTSTATUS socket_create(const char *name, enum socket_type type,
struct socket_context **new_sock, uint32_t flags);
-void socket_destroy(struct socket_context *sock);
NTSTATUS socket_connect(struct socket_context *sock,
const char *my_address, int my_port,
const char *server_address, int server_port,