summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-11-23 23:13:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:25 -0500
commitb321a8a9ad5d2b8e276c97a4a057c5fbef8b5ff7 (patch)
tree1be7e4ba1061306ded62952e2891d7b5ec11e0d0 /source3/rpc_server
parentcbba4885f356f191aeda1952473336c2eb6607e8 (diff)
downloadsamba-b321a8a9ad5d2b8e276c97a4a057c5fbef8b5ff7.tar.gz
samba-b321a8a9ad5d2b8e276c97a4a057c5fbef8b5ff7.tar.bz2
samba-b321a8a9ad5d2b8e276c97a4a057c5fbef8b5ff7.zip
r3929: Dead code elimination fix for bug #2075 from jason@ncac.gwu.edu.
Jeremy. (This used to be commit 9d367ac636d7d88cd4756531bd8412f8d6d16d14)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_srvsvc_nt.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c
index 54cc0d6161..9837ea2a97 100644
--- a/source3/rpc_server/srv_srvsvc_nt.c
+++ b/source3/rpc_server/srv_srvsvc_nt.c
@@ -356,15 +356,12 @@ out:
static void init_srv_share_info_501(pipes_struct *p, SRV_SHARE_INFO_501 *sh501, int snum)
{
- int len_net_name;
pstring remark;
- char *net_name = lp_servicename(snum);
+ const char *net_name = lp_servicename(snum);
pstrcpy(remark, lp_comment(snum));
standard_sub_conn(p->conn, remark, sizeof(remark));
- len_net_name = strlen(net_name);
-
init_srv_share_info501(&sh501->info_501, net_name, get_share_type(snum), remark, (lp_csc_policy(snum) << 4));
init_srv_share_info501_str(&sh501->info_501_str, net_name, remark);
}
@@ -375,7 +372,6 @@ static void init_srv_share_info_501(pipes_struct *p, SRV_SHARE_INFO_501 *sh501,
static void init_srv_share_info_502(pipes_struct *p, SRV_SHARE_INFO_502 *sh502, int snum)
{
- int len_net_name;
pstring net_name;
pstring remark;
pstring path;
@@ -401,7 +397,6 @@ static void init_srv_share_info_502(pipes_struct *p, SRV_SHARE_INFO_502 *sh502,
string_replace(path, '/', '\\');
pstrcpy(passwd, "");
- len_net_name = strlen(net_name);
sd = get_share_security(ctx, snum, &sd_size);