diff options
author | Tim Potter <tpot@samba.org> | 2005-07-19 03:54:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:00:11 -0500 |
commit | 99478cd59bc89c82248652ca8a7a326f0e8cad39 (patch) | |
tree | 0136a24320bd56c5ba4c6c27a90c120655432fb1 | |
parent | ab398643a4e44211696ef5ce72b62ab7ecee7bc9 (diff) | |
download | samba-99478cd59bc89c82248652ca8a7a326f0e8cad39.tar.gz samba-99478cd59bc89c82248652ca8a7a326f0e8cad39.tar.bz2 samba-99478cd59bc89c82248652ca8a7a326f0e8cad39.zip |
r8573: Fix set but not used warning in srvsvc server-side code.
Another bugzilla (#2891) from Jason Mader.
(This used to be commit ae6b4df7fed2516c5236755f75300ec0d95c35b3)
-rw-r--r-- | source3/rpc_server/srv_srvsvc_nt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |