summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-01 00:18:47 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-01 00:18:47 +0000
commit6694109c04dbb97124f4ee73d1534219ed33f2ae (patch)
treee7ffe8e1a9d9a69ef9cb8f257edf795a8bd02a29 /source3/rpc_server
parent38851c64d916c89d494380d13fed8749ee56158b (diff)
downloadsamba-6694109c04dbb97124f4ee73d1534219ed33f2ae.tar.gz
samba-6694109c04dbb97124f4ee73d1534219ed33f2ae.tar.bz2
samba-6694109c04dbb97124f4ee73d1534219ed33f2ae.zip
Named constants are always much better than magic numbers...
(I defined the constants when I put in 'net rpc shutdown') Andrew Bartlett (This used to be commit 4d90cc1d991f3894b9f39b2a75078148834701bb)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_reg_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_reg_nt.c b/source3/rpc_server/srv_reg_nt.c
index d934083e6b..5901a783b9 100644
--- a/source3/rpc_server/srv_reg_nt.c
+++ b/source3/rpc_server/srv_reg_nt.c
@@ -202,9 +202,9 @@ NTSTATUS _reg_shutdown(pipes_struct *p, REG_Q_SHUTDOWN *q_u, REG_R_SHUTDOWN *r_u
/* timeout */
snprintf(timeout, sizeof(timeout), "%d", q_u->timeout);
/* reboot */
- snprintf(r, sizeof(r), (q_u->flags & 0x100)?SHUTDOWN_R_STRING:"");
+ snprintf(r, sizeof(r), (q_u->flags & REG_REBOOT_ON_SHUTDOWN)?SHUTDOWN_R_STRING:"");
/* force */
- snprintf(f, sizeof(f), (q_u->flags & 0x001)?SHUTDOWN_F_STRING:"");
+ snprintf(f, sizeof(f), (q_u->flags & REG_FORCE_SHUTDOWN)?SHUTDOWN_F_STRING:"");
pstrcpy(shutdown_script, lp_shutdown_script());