diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-05-03 15:38:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:16:30 -0500 |
commit | 6bf82c05c1a9ab37afca21978885712da093b633 (patch) | |
tree | 6116af4a128b68852dc186cc1eb5e1dc09c52ee7 /source4 | |
parent | 2b5a7a4e1eed3f8744dfe242ec17274f1c8df375 (diff) | |
download | samba-6bf82c05c1a9ab37afca21978885712da093b633.tar.gz samba-6bf82c05c1a9ab37afca21978885712da093b633.tar.bz2 samba-6bf82c05c1a9ab37afca21978885712da093b633.zip |
r6606: add a DCESRV_FAULT_VOID() marco to use in void functions
metze
(This used to be commit a379836de63951bcfbc281425af3db7094248f2f)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/common/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/rpc_server/common/common.h b/source4/rpc_server/common/common.h index 67c758a698..a43ca74530 100644 --- a/source4/rpc_server/common/common.h +++ b/source4/rpc_server/common/common.h @@ -35,6 +35,12 @@ 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) |