r6606: add a DCESRV_FAULT_VOID() marco to use in void functions
authorStefan Metzmacher <metze@samba.org>
Tue, 3 May 2005 15:38:19 +0000 (15:38 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:30 +0000 (13:16 -0500)
metze

source/rpc_server/common/common.h

index 67c758a698982d45976958087fa67c518b9cf91d..a43ca74530c2a984d004254be5dd0f29b39b360e 100644 (file)
        return r->out.result; \
 } while(0)
 
+/* a useful macro for generating a RPC fault in the backend code */
+#define DCESRV_FAULT_VOID(code) do { \
+       dce_call->fault_code = code; \
+       return; \
+} while(0)
+
 /* a useful macro for checking the validity of a dcerpc policy handle
    and giving the right fault code if invalid */
 #define DCESRV_CHECK_HANDLE(h) do {if (!(h)) DCESRV_FAULT(DCERPC_FAULT_CONTEXT_MISMATCH); } while (0)