Do not use casts as lvalues.
This commit is contained in:
parent
81efba8c9e
commit
2cc37f2ca4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132752
@ -30,6 +30,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: file.c,v 1.2 2001/04/16 04:33:01 bp Exp $
|
* $Id: file.c,v 1.2 2001/04/16 04:33:01 bp Exp $
|
||||||
|
* $FreeBSD$
|
||||||
*/
|
*/
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
@ -71,7 +72,7 @@ smb_write(struct smb_ctx *ctx, smbfh fh, off_t offset, size_t count,
|
|||||||
struct smbioc_rw rwrq;
|
struct smbioc_rw rwrq;
|
||||||
|
|
||||||
rwrq.ioc_fh = fh;
|
rwrq.ioc_fh = fh;
|
||||||
(const char*)rwrq.ioc_base = src;
|
rwrq.ioc_base = (char *)src;
|
||||||
rwrq.ioc_cnt = count;
|
rwrq.ioc_cnt = count;
|
||||||
rwrq.ioc_offset = offset;
|
rwrq.ioc_offset = offset;
|
||||||
if (ioctl(ctx->ct_fd, SMBIOC_WRITE, &rwrq) == -1)
|
if (ioctl(ctx->ct_fd, SMBIOC_WRITE, &rwrq) == -1)
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: rq.c,v 1.7 2001/04/16 04:33:01 bp Exp $
|
* $Id: rq.c,v 1.7 2001/04/16 04:33:01 bp Exp $
|
||||||
|
* $FreeBSD$
|
||||||
*/
|
*/
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
@ -162,7 +163,7 @@ smb_t2_request(struct smb_ctx *ctx, int setup, int setupcount,
|
|||||||
bzero(&krq, sizeof(krq));
|
bzero(&krq, sizeof(krq));
|
||||||
krq.ioc_setup[0] = setup;
|
krq.ioc_setup[0] = setup;
|
||||||
krq.ioc_setupcnt = setupcount;
|
krq.ioc_setupcnt = setupcount;
|
||||||
(const char*)krq.ioc_name = name;
|
krq.ioc_name = (char *)name;
|
||||||
krq.ioc_tparamcnt = tparamcnt;
|
krq.ioc_tparamcnt = tparamcnt;
|
||||||
krq.ioc_tparam = tparam;
|
krq.ioc_tparam = tparam;
|
||||||
krq.ioc_tdatacnt = tdatacnt;
|
krq.ioc_tdatacnt = tdatacnt;
|
||||||
|
Loading…
Reference in New Issue
Block a user