summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-18 09:02:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:55 -0500
commit6e47a2bb75b17aa8d261aed8a60c3f281f8f58fa (patch)
treecd969a3471baca159ef381406561e22217a5b8ad /source4/libnet
parent69eed6a4ba7114b422a760b5b27b70b1c31ebbe9 (diff)
downloadsamba-6e47a2bb75b17aa8d261aed8a60c3f281f8f58fa.tar.gz
samba-6e47a2bb75b17aa8d261aed8a60c3f281f8f58fa.tar.bz2
samba-6e47a2bb75b17aa8d261aed8a60c3f281f8f58fa.zip
r18607: remove unused structure element
rafal: is there a reason why we don't use libnet_AddShare() in the torture test? metze (This used to be commit 070a98379a78eb46ff808521e375c9874c1c0d1c)
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_share.c2
-rw-r--r--source4/libnet/libnet_share.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/source4/libnet/libnet_share.c b/source4/libnet/libnet_share.c
index 35980fdcbb..813407d1f4 100644
--- a/source4/libnet/libnet_share.c
+++ b/source4/libnet/libnet_share.c
@@ -130,7 +130,7 @@ NTSTATUS libnet_AddShare(struct libnet_context *ctx,
return status;
}
- s.in.level = r->in.level;
+ s.in.level = 2;
s.in.info.info2 = &r->in.share;
s.in.server_unc = talloc_asprintf(mem_ctx, "\\\\%s", r->in.server_name);
diff --git a/source4/libnet/libnet_share.h b/source4/libnet/libnet_share.h
index fdf162a066..f1e9a78a97 100644
--- a/source4/libnet/libnet_share.h
+++ b/source4/libnet/libnet_share.h
@@ -47,7 +47,6 @@ struct libnet_AddShare {
enum libnet_AddShare_level level;
struct {
const char * server_name;
- uint32_t level;
struct srvsvc_NetShareInfo2 share;
} in;
struct {