diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-12-28 17:33:30 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2011-01-01 02:54:05 +0100 |
commit | 9529fdab26270f4d35119e87f9ca8a7693c24a3f (patch) | |
tree | 1b16e4e579a931a4ad7192faa02b46b3c6202683 /librpc/ndr | |
parent | 51239bb26a714bf4c41fb15fde211df1255f9468 (diff) | |
download | samba-9529fdab26270f4d35119e87f9ca8a7693c24a3f.tar.gz samba-9529fdab26270f4d35119e87f9ca8a7693c24a3f.tar.bz2 samba-9529fdab26270f4d35119e87f9ca8a7693c24a3f.zip |
wmi: Remove unnecessary noprint statements.
Diffstat (limited to 'librpc/ndr')
-rw-r--r-- | librpc/ndr/ndr_wmi.c | 15 | ||||
-rw-r--r-- | librpc/ndr/ndr_wmi.h | 3 |
2 files changed, 7 insertions, 11 deletions
diff --git a/librpc/ndr/ndr_wmi.c b/librpc/ndr/ndr_wmi.c index 2c122decf4..87f3e9690a 100644 --- a/librpc/ndr/ndr_wmi.c +++ b/librpc/ndr/ndr_wmi.c @@ -23,7 +23,6 @@ #include "includes.h" #include "librpc/gen_ndr/ndr_dcom.h" #include "librpc/gen_ndr/ndr_wmi.h" -#include "librpc/ndr/ndr_wmi.h" // Just for debugging int NDR_CHECK_depth = 0; @@ -35,18 +34,18 @@ enum ndr_err_code ndr_push_BSTR(struct ndr_push *ndr, int ndr_flags, const struc uint32_t flags; enum ndr_err_code status; len = strlen(r->data); - if (ndr_flags & NDR_SCALARS) { - NDR_CHECK(ndr_push_align(ndr, 4)); - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x72657355)); - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, len)); - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 2*len)); + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0x72657355)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, len)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 2*len)); flags = ndr->flags; ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NOTERM | LIBNDR_FLAG_STR_SIZE4); status = ndr_push_string(ndr, NDR_SCALARS, r->data); ndr->flags = flags; return status; - } - return NDR_ERR_SUCCESS; + } + return NDR_ERR_SUCCESS; } enum ndr_err_code ndr_pull_BSTR(struct ndr_pull *ndr, int ndr_flags, struct BSTR *r) diff --git a/librpc/ndr/ndr_wmi.h b/librpc/ndr/ndr_wmi.h deleted file mode 100644 index 539b9e882b..0000000000 --- a/librpc/ndr/ndr_wmi.h +++ /dev/null @@ -1,3 +0,0 @@ -typedef const char *CIMSTRING; -enum ndr_err_code ndr_pull_CIMSTRING(struct ndr_pull *ndr, int ndr_flags, CIMSTRING *r); -enum ndr_err_code ndr_push_CIMSTRING(struct ndr_push *ndr, int ndr_flags, const CIMSTRING *r); |