Stop using hardcoded transact commands
authorJim McDonough <jmcd@samba.org>
Thu, 7 Nov 2002 14:39:49 +0000 (14:39 +0000)
committerJim McDonough <jmcd@samba.org>
Thu, 7 Nov 2002 14:39:49 +0000 (14:39 +0000)
(This used to be commit ec0d94b4dd8409e6bf114d013f23a52f0fc11a69)

source3/smbd/ipc.c

index 91b221968f27bbfc33ae29c0279827af606438d5..7fe02dbccf97e4239ff70ce296eb768b89df1f1f 100644 (file)
@@ -293,17 +293,17 @@ static int api_fd_reply(connection_struct *conn,uint16 vuid,char *outbuf,
        DEBUG(10,("api_fd_reply: p:%p max_trans_reply: %d\n", p, p->max_trans_reply));
 
        switch (subcommand) {
-       case 0x26:
+       case TRANSACT_DCERPCCMD:
                /* dce/rpc command */
                reply = write_to_pipe(p, data, tdscnt);
                if (reply)
                        reply = api_rpc_trans_reply(outbuf, p);
                break;
-       case 0x53:
+       case TRANSACT_WAITNAMEDPIPEHANDLESTATE:
                /* Wait Named Pipe Handle state */
                reply = api_WNPHS(outbuf, p, params, tpscnt);
                break;
-       case 0x01:
+       case TRANSACT_SETNAMEDPIPEHANDLESTATE:
                /* Set Named Pipe Handle state */
                reply = api_SNPHS(outbuf, p, params, tpscnt);
                break;