There's no need for two almost identical structures.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-
-struct pipe_np_smb2_state {
- struct dcerpc_pipe_connect io;
-};
-
-
/*
Stage 3 of ncacn_np_smb: Named pipe opened (or not)
*/
/*
Stage 3 of ncacn_np_smb: Named pipe opened (or not)
*/
struct composite_context *c =
tevent_req_callback_data(subreq,
struct composite_context);
struct composite_context *c =
tevent_req_callback_data(subreq,
struct composite_context);
- struct pipe_np_smb2_state *s = talloc_get_type(c->private_data,
- struct pipe_np_smb2_state);
+ struct pipe_np_smb_state *s = talloc_get_type(c->private_data,
+ struct pipe_np_smb_state);
struct smb2_tree *t;
/* receive result of smb2 connect request */
struct smb2_tree *t;
/* receive result of smb2 connect request */
struct loadparm_context *lp_ctx)
{
struct composite_context *c;
struct loadparm_context *lp_ctx)
{
struct composite_context *c;
- struct pipe_np_smb2_state *s;
+ struct pipe_np_smb_state *s;
struct tevent_req *subreq;
struct smbcli_options options;
const char *host;
struct tevent_req *subreq;
struct smbcli_options options;
const char *host;
c = composite_create(mem_ctx, io->conn->event_ctx);
if (c == NULL) return NULL;
c = composite_create(mem_ctx, io->conn->event_ctx);
if (c == NULL) return NULL;
- s = talloc_zero(c, struct pipe_np_smb2_state);
+ s = talloc_zero(c, struct pipe_np_smb_state);
if (composite_nomem(s, c)) return c;
c->private_data = s;
if (composite_nomem(s, c)) return c;
c->private_data = s;