diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-03-22 20:57:36 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-03-23 12:49:39 +1100 |
commit | 1d22c3919d08b4d18a1d021a407a98cb1402d7d7 (patch) | |
tree | 6d3a53bb42ca0d1886ff135d41f6a67ae6173c9e /source3/libsmb | |
parent | 1923b78209aaa2aa926dedd19e6c97fb449c48c8 (diff) | |
download | samba-1d22c3919d08b4d18a1d021a407a98cb1402d7d7.tar.gz samba-1d22c3919d08b4d18a1d021a407a98cb1402d7d7.tar.bz2 samba-1d22c3919d08b4d18a1d021a407a98cb1402d7d7.zip |
s3-safe_str: Futher simplify the macros by removing indirection
Now that we don't need to pass in the function name and string,
another level of indirection can be safely removed, and the operation
of these macros made much clearer.
Andrew Bartlett
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clistr.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/source3/libsmb/clistr.c b/source3/libsmb/clistr.c index 8856e03dd0..373cce590d 100644 --- a/source3/libsmb/clistr.c +++ b/source3/libsmb/clistr.c @@ -58,21 +58,21 @@ size_t clistr_pull_fn(const char *inbuf, src_len, flags); } -size_t clistr_pull_talloc_fn(TALLOC_CTX *ctx, - const char *base, - uint16_t flags2, - char **pp_dest, - const void *src, - int src_len, - int flags) +size_t clistr_pull_talloc(TALLOC_CTX *ctx, + const char *base, + uint16_t flags2, + char **pp_dest, + const void *src, + int src_len, + int flags) { return pull_string_talloc_fn(ctx, - base, - flags2, - pp_dest, - src, - src_len, - flags); + base, + flags2, + pp_dest, + src, + src_len, + flags); } size_t clistr_align_out(struct cli_state *cli, const void *p, int flags) |