From 99478cd59bc89c82248652ca8a7a326f0e8cad39 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 19 Jul 2005 03:54:01 +0000 Subject: r8573: Fix set but not used warning in srvsvc server-side code. Another bugzilla (#2891) from Jason Mader. (This used to be commit ae6b4df7fed2516c5236755f75300ec0d95c35b3) --- source3/rpc_server/srv_srvsvc_nt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/rpc_server/srv_srvsvc_nt.c b/source3/rpc_server/srv_srvsvc_nt.c index c3fd53a384..b607d32e54 100644 --- a/source3/rpc_server/srv_srvsvc_nt.c +++ b/source3/rpc_server/srv_srvsvc_nt.c @@ -1355,7 +1355,7 @@ WERROR _srv_net_sess_del(pipes_struct *p, SRV_Q_NET_SESS_DEL *q_u, SRV_R_NET_SES { struct sessionid *session_list; struct current_user user; - int num_sessions, snum, ret; + int num_sessions, snum; fstring username; fstring machine; BOOL not_root = False; @@ -1394,7 +1394,7 @@ WERROR _srv_net_sess_del(pipes_struct *p, SRV_Q_NET_SESS_DEL *q_u, SRV_R_NET_SES become_root(); } - if ((ret = message_send_pid(session_list[snum].pid, MSG_SHUTDOWN, NULL, 0, False))) + if (message_send_pid(session_list[snum].pid, MSG_SHUTDOWN, NULL, 0, False)) r_u->status = WERR_OK; if (not_root) -- cgit