summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-07-10 08:56:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:29 -0500
commit0c03be55034decf38e13b988b23a38435b29ec45 (patch)
tree6970a474048fe35338853ef8f5f2c5182a4d0014 /source3/librpc/gen_ndr
parent714209baaa12c3118067249b8da0aaec96868eae (diff)
downloadsamba-0c03be55034decf38e13b988b23a38435b29ec45.tar.gz
samba-0c03be55034decf38e13b988b23a38435b29ec45.tar.bz2
samba-0c03be55034decf38e13b988b23a38435b29ec45.zip
r23808: Make us a bit more C++ friendly. Thanks to Constantine Vetoshev
<gepardcv@yahoo.com> for checking. (This used to be commit 84b8a56fe9aef1e0583cf5f5abb037199cf21fd9)
Diffstat (limited to 'source3/librpc/gen_ndr')
-rw-r--r--source3/librpc/gen_ndr/ndr_svcctl.c6
-rw-r--r--source3/librpc/gen_ndr/svcctl.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/librpc/gen_ndr/ndr_svcctl.c b/source3/librpc/gen_ndr/ndr_svcctl.c
index f3ea9862a9..789503346e 100644
--- a/source3/librpc/gen_ndr/ndr_svcctl.c
+++ b/source3/librpc/gen_ndr/ndr_svcctl.c
@@ -76,7 +76,7 @@ NTSTATUS ndr_push_SERVICE_STATUS(struct ndr_push *ndr, int ndr_flags, const stru
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->type));
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->state));
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->controls_accepted));
- NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->win32_exit_code));
+ NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->win32_exit_code));
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->service_exit_code));
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->check_point));
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->wait_hint));
@@ -93,7 +93,7 @@ NTSTATUS ndr_pull_SERVICE_STATUS(struct ndr_pull *ndr, int ndr_flags, struct SER
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->type));
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->state));
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->controls_accepted));
- NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->win32_exit_code));
+ NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->win32_exit_code));
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->service_exit_code));
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->check_point));
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->wait_hint));
@@ -110,7 +110,7 @@ _PUBLIC_ void ndr_print_SERVICE_STATUS(struct ndr_print *ndr, const char *name,
ndr_print_uint32(ndr, "type", r->type);
ndr_print_uint32(ndr, "state", r->state);
ndr_print_uint32(ndr, "controls_accepted", r->controls_accepted);
- ndr_print_uint32(ndr, "win32_exit_code", r->win32_exit_code);
+ ndr_print_WERROR(ndr, "win32_exit_code", r->win32_exit_code);
ndr_print_uint32(ndr, "service_exit_code", r->service_exit_code);
ndr_print_uint32(ndr, "check_point", r->check_point);
ndr_print_uint32(ndr, "wait_hint", r->wait_hint);
diff --git a/source3/librpc/gen_ndr/svcctl.h b/source3/librpc/gen_ndr/svcctl.h
index 5c7f32cd7b..fbb995e0a7 100644
--- a/source3/librpc/gen_ndr/svcctl.h
+++ b/source3/librpc/gen_ndr/svcctl.h
@@ -27,7 +27,7 @@ struct SERVICE_STATUS {
uint32_t type;
uint32_t state;
uint32_t controls_accepted;
- uint32_t win32_exit_code;
+ WERROR win32_exit_code;
uint32_t service_exit_code;
uint32_t check_point;
uint32_t wait_hint;