mirror of
https://github.com/samba-team/samba.git
synced 2025-11-02 20:23:50 +03:00
r4063: - change char * -> uint8_t in struct request_buffer
- change smbcli_read/write to take void * for the buffers to match read(2)/write(2) all this fixes a lot of gcc-4 warnings metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
e3500811b9
commit
b94f92bc66
@@ -109,7 +109,7 @@ void smbcli_sock_set_options(struct smbcli_socket *sock, const char *options)
|
||||
/****************************************************************************
|
||||
Write to socket. Return amount written.
|
||||
****************************************************************************/
|
||||
ssize_t smbcli_sock_write(struct smbcli_socket *sock, const char *data, size_t len)
|
||||
ssize_t smbcli_sock_write(struct smbcli_socket *sock, const uint8_t *data, size_t len)
|
||||
{
|
||||
NTSTATUS status;
|
||||
DATA_BLOB blob;
|
||||
@@ -135,7 +135,7 @@ ssize_t smbcli_sock_write(struct smbcli_socket *sock, const char *data, size_t l
|
||||
/****************************************************************************
|
||||
Read from socket. return amount read
|
||||
****************************************************************************/
|
||||
ssize_t smbcli_sock_read(struct smbcli_socket *sock, char *data, size_t len)
|
||||
ssize_t smbcli_sock_read(struct smbcli_socket *sock, uint8_t *data, size_t len)
|
||||
{
|
||||
NTSTATUS status;
|
||||
size_t nread;
|
||||
|
||||
Reference in New Issue
Block a user