diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-07-31 03:53:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:26 -0500 |
commit | 02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f (patch) | |
tree | a3fb9be7bfad975ba13651718a011bbad36597ca /source3/libsmb/libsmbclient.c | |
parent | e23781b3b304d1e69ad80af5ae9c0ed8d02cf996 (diff) | |
download | samba-02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f.tar.gz samba-02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f.tar.xz samba-02eea79624c85fb5ce6c3ffefe2d27e40c5ff97f.zip |
r17333: Some C++ warnings
(This used to be commit be9aaffdaccae06c8c035eaf31862e34b7cfbe38)
Diffstat (limited to 'source3/libsmb/libsmbclient.c')
-rw-r--r-- | source3/libsmb/libsmbclient.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c index db788f46e9b..c64c3dfb396 100644 --- a/source3/libsmb/libsmbclient.c +++ b/source3/libsmb/libsmbclient.c @@ -1281,7 +1281,7 @@ smbc_read_ctx(SMBCCTX *context, } /*d_printf(">>>fstat: resolved path as %s\n", targetpath);*/ - ret = cli_read(targetcli, file->cli_fd, buf, offset, count); + ret = cli_read(targetcli, file->cli_fd, (char *)buf, offset, count); if (ret < 0) { @@ -1365,7 +1365,7 @@ smbc_write_ctx(SMBCCTX *context, /*d_printf(">>>write: resolved path as %s\n", targetpath);*/ - ret = cli_write(targetcli, file->cli_fd, 0, buf, offset, count); + ret = cli_write(targetcli, file->cli_fd, 0, (char *)buf, offset, count); if (ret <= 0) { @@ -2246,7 +2246,7 @@ add_dirent(SMBCFILE *dir, size = sizeof(struct smbc_dirent) + name_length + comment_len + 2; - dirent = SMB_MALLOC(size); + dirent = (struct smbc_dirent *)SMB_MALLOC(size); if (!dirent) { @@ -6230,7 +6230,7 @@ smbc_init_context(SMBCCTX *context) * lazy for the moment */ pid = sys_getpid(); - context->netbios_name = SMB_MALLOC(17); + context->netbios_name = (char *)SMB_MALLOC(17); if (!context->netbios_name) { errno = ENOMEM; return NULL; |