From b321a8a9ad5d2b8e276c97a4a057c5fbef8b5ff7 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 23 Nov 2004 23:13:48 +0000 Subject: r3929: Dead code elimination fix for bug #2075 from jason@ncac.gwu.edu. Jeremy. (This used to be commit 9d367ac636d7d88cd4756531bd8412f8d6d16d14) --- source3/rpc_server/srv_srvsvc_nt.c | 7 +------ 1 file changed, 1 insertion(+), 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); -- cgit