diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-11-09 19:24:10 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:44:56 +0100 |
commit | 910ab408afe0ed866d378fb6d58e795dffcbfa58 (patch) | |
tree | 56a084dc5f0a2f7b62767c9212013461f207d33e /source4/librpc/ndr/ndr_orpc.c | |
parent | 0ce646d49a70b19d7ca54e0b83422f048dd39c1a (diff) | |
download | samba-910ab408afe0ed866d378fb6d58e795dffcbfa58.tar.gz samba-910ab408afe0ed866d378fb6d58e795dffcbfa58.tar.bz2 samba-910ab408afe0ed866d378fb6d58e795dffcbfa58.zip |
r25918: ndr: change NTSTAUS into enum ndr_err_code (samba4 handwritten stuff)
ndr_sec_helper.c
ndr_spoolss_buf.c
ndr_compression.c
ndr_drsuapi.[ch]
ndr_krb5pac.c
ndr_orpc.c
metze
(This used to be commit 356e027bf883c8fc36fa4759eff56e364daf9fce)
Diffstat (limited to 'source4/librpc/ndr/ndr_orpc.c')
-rw-r--r-- | source4/librpc/ndr/ndr_orpc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source4/librpc/ndr/ndr_orpc.c b/source4/librpc/ndr/ndr_orpc.c index 108508d4ed..6a55048e43 100644 --- a/source4/librpc/ndr/ndr_orpc.c +++ b/source4/librpc/ndr/ndr_orpc.c @@ -23,14 +23,14 @@ #include "includes.h" #include "librpc/gen_ndr/ndr_orpc.h" -NTSTATUS ndr_pull_DUALSTRINGARRAY(struct ndr_pull *ndr, int ndr_flags, struct DUALSTRINGARRAY *ar) +enum ndr_err_code ndr_pull_DUALSTRINGARRAY(struct ndr_pull *ndr, int ndr_flags, struct DUALSTRINGARRAY *ar) { uint16_t num_entries, security_offset; uint16_t towerid; uint32_t towernum = 0, conformant_size; if (!(ndr_flags & NDR_SCALARS)) { - return NT_STATUS_OK; + return NDR_ERR_SUCCESS; } NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &conformant_size)); @@ -74,12 +74,12 @@ NTSTATUS ndr_pull_DUALSTRINGARRAY(struct ndr_pull *ndr, int ndr_flags, struct DU ar->securitybindings[towernum] = NULL; - return NT_STATUS_OK; + return NDR_ERR_SUCCESS; } -NTSTATUS ndr_push_DUALSTRINGARRAY(struct ndr_push *ndr, int ndr_flags, const struct DUALSTRINGARRAY *ar) +enum ndr_err_code ndr_push_DUALSTRINGARRAY(struct ndr_push *ndr, int ndr_flags, const struct DUALSTRINGARRAY *ar) { - return NT_STATUS_NOT_SUPPORTED; + return ndr_push_error(ndr, NDR_ERR_STRING, "ndr_push_DUALSTRINGARRAY not implemented"); } /* @@ -114,14 +114,14 @@ void ndr_print_DUALSTRINGARRAY(struct ndr_print *ndr, const char *name, const st ndr->depth--; } -NTSTATUS ndr_pull_STRINGARRAY(struct ndr_pull *ndr, int ndr_flags, struct STRINGARRAY *ar) +enum ndr_err_code ndr_pull_STRINGARRAY(struct ndr_pull *ndr, int ndr_flags, struct STRINGARRAY *ar) { uint16_t towerid; uint32_t towernum = 0; uint16_t num_entries; if (!(ndr_flags & NDR_SCALARS)) { - return NT_STATUS_OK; + return NDR_ERR_SUCCESS; } NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &num_entries)); @@ -145,12 +145,12 @@ NTSTATUS ndr_pull_STRINGARRAY(struct ndr_pull *ndr, int ndr_flags, struct STRING ar->stringbindings[towernum] = NULL; towernum = 0; - return NT_STATUS_OK; + return NDR_ERR_SUCCESS; } -NTSTATUS ndr_push_STRINGARRAY(struct ndr_push *ndr, int ndr_flags, const struct STRINGARRAY *ar) +enum ndr_err_code ndr_push_STRINGARRAY(struct ndr_push *ndr, int ndr_flags, const struct STRINGARRAY *ar) { - return NT_STATUS_NOT_SUPPORTED; + return ndr_push_error(ndr, NDR_ERR_STRING, "ndr_push_STRINGARRAY not implemented"); } /* |