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/include/proto.h | |
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/include/proto.h')
-rw-r--r-- | source3/include/proto.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index d806b36dd2..0f313d637e 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1352,11 +1352,11 @@ char *safe_strcpy_fn(char *dest, char *safe_strcat_fn(char *dest, const char *src, size_t maxlength); -char *alpha_strcpy_fn(char *dest, +char *alpha_strcpy(char *dest, const char *src, const char *other_safe_chars, size_t maxlength); -char *StrnCpy_fn(char *dest,const char *src,size_t n); +char *StrnCpy(char *dest,const char *src,size_t n); bool in_list(const char *s, const char *list, bool casesensitive); void string_free(char **s); bool string_set(char **dest,const char *src); @@ -2328,13 +2328,13 @@ size_t clistr_pull_fn(const char *inbuf, int dest_len, int src_len, int 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); size_t clistr_align_out(struct cli_state *cli, const void *p, int flags); /* The following definitions come from libsmb/clitrans.c */ |