summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/srv_initshutdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/librpc/gen_ndr/srv_initshutdown.c')
-rw-r--r--source3/librpc/gen_ndr/srv_initshutdown.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/source3/librpc/gen_ndr/srv_initshutdown.c b/source3/librpc/gen_ndr/srv_initshutdown.c
index 9b20bd7115..56fbf42957 100644
--- a/source3/librpc/gen_ndr/srv_initshutdown.c
+++ b/source3/librpc/gen_ndr/srv_initshutdown.c
@@ -11,7 +11,7 @@ static bool api_initshutdown_Init(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct initshutdown_Init *r;
@@ -34,8 +34,8 @@ static bool api_initshutdown_Init(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -60,8 +60,8 @@ static bool api_initshutdown_Init(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -82,7 +82,7 @@ static bool api_initshutdown_Abort(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct initshutdown_Abort *r;
@@ -105,8 +105,8 @@ static bool api_initshutdown_Abort(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -131,8 +131,8 @@ static bool api_initshutdown_Abort(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -153,7 +153,7 @@ static bool api_initshutdown_InitEx(pipes_struct *p)
const struct ndr_interface_call *call;
struct ndr_pull *pull;
struct ndr_push *push;
- NTSTATUS status;
+ enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct initshutdown_InitEx *r;
@@ -176,8 +176,8 @@ static bool api_initshutdown_InitEx(pipes_struct *p)
}
pull->flags |= LIBNDR_FLAG_REF_ALLOC;
- status = call->ndr_pull(pull, NDR_IN, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_pull(pull, NDR_IN, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}
@@ -202,8 +202,8 @@ static bool api_initshutdown_InitEx(pipes_struct *p)
return False;
}
- status = call->ndr_push(push, NDR_OUT, r);
- if (NT_STATUS_IS_ERR(status)) {
+ ndr_err = call->ndr_push(push, NDR_OUT, r);
+ if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
talloc_free(r);
return False;
}