summaryrefslogtreecommitdiff
path: root/source3/librpc/ndr/libndr.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-08 14:36:13 +0100
committerStefan Metzmacher <metze@samba.org>2007-11-08 14:36:13 +0100
commit128fa582a62ad3e145c2bda93e4f939d5f62885f (patch)
tree7557f8a55823a472ca0c33f07e870830841e9b27 /source3/librpc/ndr/libndr.h
parent7404475a7125b7e953eadd5bb9967e088c5f9c34 (diff)
downloadsamba-128fa582a62ad3e145c2bda93e4f939d5f62885f.tar.gz
samba-128fa582a62ad3e145c2bda93e4f939d5f62885f.tar.bz2
samba-128fa582a62ad3e145c2bda93e4f939d5f62885f.zip
sync the most parts of librpc/ndr with samba4
metze (This used to be commit 201800a4c960d4f2afeb6cc760ac303df76d5e36)
Diffstat (limited to 'source3/librpc/ndr/libndr.h')
-rw-r--r--source3/librpc/ndr/libndr.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/librpc/ndr/libndr.h b/source3/librpc/ndr/libndr.h
index f09693feb8..518b4a5a37 100644
--- a/source3/librpc/ndr/libndr.h
+++ b/source3/librpc/ndr/libndr.h
@@ -104,7 +104,7 @@ struct ndr_print {
uint32_t flags; /* LIBNDR_FLAG_* */
uint32_t depth;
struct ndr_token_list *switch_list;
- void (*print)(struct ndr_print *, const char *, ...);
+ void (*print)(struct ndr_print *, const char *, ...) PRINTF_ATTRIBUTE(2,3);
void *private_data;
};
@@ -244,7 +244,7 @@ enum ndr_compression_alg {
if (!(mem_ctx)) {\
return ndr_pull_error(ndr, NDR_ERR_ALLOC, "NDR_PULL_SET_MEM_CTX(NULL): %s\n", __location__); \
}\
- ndr->current_mem_ctx = CONST_DISCARD(TALLOC_CTX *, mem_ctx);\
+ ndr->current_mem_ctx = discard_const(mem_ctx);\
}\
} while(0)
@@ -271,7 +271,7 @@ enum ndr_compression_alg {
#define NDR_PUSH_ALLOC_SIZE(ndr, s, size) do { \
- (s) = talloc_array(ndr, uint8, size); \
+ (s) = talloc_array(ndr, uint8_t, size); \
if (!(s)) return ndr_push_error(ndr, NDR_ERR_ALLOC, "push alloc %u failed: %s\n", (unsigned)size, __location__); \
} while (0)
@@ -290,12 +290,12 @@ extern const struct ndr_syntax_id ndr_transfer_syntax;
extern const struct ndr_syntax_id ndr64_transfer_syntax;
struct ndr_interface_call {
- const char *name;
- size_t struct_size;
- ndr_push_flags_fn_t ndr_push;
- ndr_pull_flags_fn_t ndr_pull;
- ndr_print_function_t ndr_print;
- bool async;
+ const char *name;
+ size_t struct_size;
+ ndr_push_flags_fn_t ndr_push;
+ ndr_pull_flags_fn_t ndr_pull;
+ ndr_print_function_t ndr_print;
+ bool async;
};
struct ndr_interface_string_array {