r7482: Rename smbcli_send_tconX() to smbcli_tconX() so as not to get it
authorTim Potter <tpot@samba.org>
Sat, 11 Jun 2005 03:35:28 +0000 (03:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:58 +0000 (13:17 -0500)
confused with an async function.
(This used to be commit 340ad67cada15329051c205c5b094ad641718c72)

source4/client/smbmount.c
source4/libcli/cliconnect.c
source4/torture/torture.c

index 7f73807ec6b1262324983342e3d72dd11520d42c..7e9c74da57399dc525a76c63dc4fa61dd40f1fd0 100644 (file)
@@ -228,8 +228,7 @@ static struct smbcli_state *do_connection(char *the_service)
 
        DEBUG(4,("%d: session setup ok\n", sys_getpid()));
 
-       if (!smbcli_send_tconX(c, share, "?????",
-                           password, strlen(password)+1)) {
+       if (!smbcli_tconX(c, share, "?????", password, strlen(password)+1)) {
                DEBUG(0,("%d: tree connect failed: %s\n",
                         sys_getpid(), smbcli_errstr(c)));
                smbcli_shutdown(c);
index ace9389ae808b6a7dcaeb46a55b2a1b81dd5bcf3..a866e269704d98c719663c2647fd72ce6212074e 100644 (file)
@@ -84,8 +84,8 @@ NTSTATUS smbcli_session_setup(struct smbcli_state *cli,
 }
 
 /* wrapper around smb_tree_connect() */
-NTSTATUS smbcli_send_tconX(struct smbcli_state *cli, const char *sharename, 
-                          const char *devtype, const char *password)
+NTSTATUS smbcli_tconX(struct smbcli_state *cli, const char *sharename, 
+                     const char *devtype, const char *password)
 {
        union smb_tcon tcon;
        TALLOC_CTX *mem_ctx;
index c3a2f53385039b23097e44ceff48e1ac40367dac..3d1353450d56ceba749b50aa514f80e6a919fb38 100644 (file)
@@ -486,7 +486,7 @@ static BOOL run_tcon_test(void)
        }
 
        tree1 = cli->tree;      /* save old tree connection */
-       if (NT_STATUS_IS_ERR(smbcli_send_tconX(cli, share, "?????", password))) {
+       if (NT_STATUS_IS_ERR(smbcli_tconX(cli, share, "?????", password))) {
                printf("%s refused 2nd tree connect (%s)\n", host,
                           smbcli_errstr(cli->tree));
                smbcli_shutdown(cli);
@@ -564,7 +564,7 @@ static BOOL tcon_devtest(struct smbcli_state *cli,
        BOOL ret;
        const char *password = lp_parm_string(-1, "torture", "password");
 
-       status = NT_STATUS_IS_OK(smbcli_send_tconX(cli, myshare, devtype, 
+       status = NT_STATUS_IS_OK(smbcli_tconX(cli, myshare, devtype, 
                                                password));
 
        printf("Trying share %s with devtype %s\n", myshare, devtype);