summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_connect.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-12-02 19:03:23 +0000
committerLuke Leighton <lkcl@samba.org>1999-12-02 19:03:23 +0000
commit98e28ee14ce7ffe93777315891a6626ac7a0828a (patch)
treeaa4849a6d751ae5a978ed31e125d06c8e4e561c0 /source3/rpc_client/cli_connect.c
parent5988d0cdae19d014a5a011de83c48326e82860b6 (diff)
downloadsamba-98e28ee14ce7ffe93777315891a6626ac7a0828a.tar.gz
samba-98e28ee14ce7ffe93777315891a6626ac7a0828a.tar.bz2
samba-98e28ee14ce7ffe93777315891a6626ac7a0828a.zip
cleaning up: removing those horrible references to server list
functions (cli_net_use_addlist()). needed originally because there was no get_dc_any_name() function. (This used to be commit 3a2b920ea2e6704b2574f404e1e41c7cfc0f96b2)
Diffstat (limited to 'source3/rpc_client/cli_connect.c')
-rw-r--r--source3/rpc_client/cli_connect.c59
1 files changed, 0 insertions, 59 deletions
diff --git a/source3/rpc_client/cli_connect.c b/source3/rpc_client/cli_connect.c
index 6faf7cc28b..6f63d5356f 100644
--- a/source3/rpc_client/cli_connect.c
+++ b/source3/rpc_client/cli_connect.c
@@ -73,40 +73,6 @@ void free_connections(void)
init_connections();
}
-static struct cli_connection *cli_con_getlist(char* servers,
- const char* pipe_name)
-{
- struct cli_connection *con = NULL;
-
- con = (struct cli_connection*)malloc(sizeof(*con));
-
- if (con == NULL)
- {
- return NULL;
- }
-
- memset(con, 0, sizeof(*con));
-
- if (servers != NULL)
- {
- con->srv_name = strdup(servers);
- }
- if (pipe_name != NULL)
- {
- con->pipe_name = strdup(pipe_name);
- }
-
- con->cli = cli_net_use_addlist(servers, usr_creds);
-
- if (con->cli == NULL)
- {
- cli_connection_free(con);
- return NULL;
- }
- add_con_to_array(&num_cons, &con_list, con);
- return con;
-}
-
static struct cli_connection *cli_con_get(const char* srv_name,
const char* pipe_name)
{
@@ -211,31 +177,6 @@ void cli_connection_unlink(struct cli_connection *con)
/****************************************************************************
init client state
****************************************************************************/
-BOOL cli_connection_init_list(char* servers, const char* pipe_name,
- struct cli_connection **con)
-{
- BOOL res = True;
-
- /*
- * allocate
- */
-
- *con = cli_con_getlist(servers, pipe_name);
-
- if ((*con) == NULL)
- {
- return False;
- }
-
- res = res ? cli_nt_session_open((*con)->cli, pipe_name,
- &(*con)->fnum) : False;
-
- return res;
-}
-
-/****************************************************************************
-init client state
-****************************************************************************/
BOOL cli_connection_init(const char* srv_name, const char* pipe_name,
struct cli_connection **con)
{