diff options
author | Richard Sharpe <rsharpe@samba.org> | 2015-05-02 21:01:14 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-05-06 04:14:14 +0200 |
commit | 6abd986704291b051af5eeb67f670a0e8cf845fd (patch) | |
tree | 072b07506cf9f6e94aefb7f628d56534a839e12f /source3/smbd/srvstr.c | |
parent | e60cc280d6ba824c53bb91a29b5b24e177eec823 (diff) | |
download | samba-6abd986704291b051af5eeb67f670a0e8cf845fd.tar.gz |
Convert all uses of uint8/16/32 to _t in source3/smbd.
Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/srvstr.c')
-rw-r--r-- | source3/smbd/srvstr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/srvstr.c b/source3/smbd/srvstr.c index e6a85419b8a..56dceba8c6c 100644 --- a/source3/smbd/srvstr.c +++ b/source3/smbd/srvstr.c @@ -24,7 +24,7 @@ /* Make sure we can't write a string past the end of the buffer */ -NTSTATUS srvstr_push_fn(const char *base_ptr, uint16 smb_flags2, void *dest, +NTSTATUS srvstr_push_fn(const char *base_ptr, uint16_t smb_flags2, void *dest, const char *src, int dest_len, int flags, size_t *ret_len) { size_t len; @@ -81,12 +81,12 @@ NTSTATUS srvstr_push_fn(const char *base_ptr, uint16 smb_flags2, void *dest, Return the bytes added ********************************************************************/ -ssize_t message_push_string(uint8 **outbuf, const char *str, int flags) +ssize_t message_push_string(uint8_t **outbuf, const char *str, int flags) { size_t buf_size = smb_len(*outbuf) + 4; size_t grow_size; size_t result = 0; - uint8 *tmp; + uint8_t *tmp; NTSTATUS status; /* @@ -97,7 +97,7 @@ ssize_t message_push_string(uint8 **outbuf, const char *str, int flags) */ grow_size = (strlen(str) + 2) * 4; - if (!(tmp = talloc_realloc(NULL, *outbuf, uint8, + if (!(tmp = talloc_realloc(NULL, *outbuf, uint8_t, buf_size + grow_size))) { DEBUG(0, ("talloc failed\n")); return -1; |