libsmb: Fix up pointer passed to cli_send_trans in cli_link_internal
authorKai Blin <kai@samba.org>
Tue, 18 Nov 2008 15:31:34 +0000 (16:31 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 18 Nov 2008 19:23:36 +0000 (11:23 -0800)
Seems like this one fell victim to the pstring removal. The other callers seem
to be fine, even though removing the casts would make the code less confusing.

source/libsmb/clifile.c

index 12c427a6fa655b2013e8cfbfeac6e28c212fa0b0..8b4a1bebc357e219788e5dc0d66089dcdcad9f4a 100644 (file)
@@ -66,7 +66,7 @@ static bool cli_link_internal(struct cli_state *cli, const char *oldname, const
                        -1, 0,                          /* fid, flags */
                        &setup, 1, 0,                   /* setup, length, max */
                        param, param_len, 2,            /* param, length, max */
-                       (char *)&data,  data_len, cli->max_xmit /* data, length, max */
+                       data,  data_len, cli->max_xmit  /* data, length, max */
                        )) {
                SAFE_FREE(data);
                SAFE_FREE(param);