Do not use casts as lvalues.

This commit is contained in:
Alexander Kabaev 2004-07-28 05:33:58 +00:00
parent 81efba8c9e
commit 2cc37f2ca4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132752
2 changed files with 4 additions and 2 deletions

View File

@ -30,6 +30,7 @@
* SUCH DAMAGE.
*
* $Id: file.c,v 1.2 2001/04/16 04:33:01 bp Exp $
* $FreeBSD$
*/
#include <sys/param.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;
rwrq.ioc_fh = fh;
(const char*)rwrq.ioc_base = src;
rwrq.ioc_base = (char *)src;
rwrq.ioc_cnt = count;
rwrq.ioc_offset = offset;
if (ioctl(ctx->ct_fd, SMBIOC_WRITE, &rwrq) == -1)

View File

@ -30,6 +30,7 @@
* SUCH DAMAGE.
*
* $Id: rq.c,v 1.7 2001/04/16 04:33:01 bp Exp $
* $FreeBSD$
*/
#include <sys/param.h>
#include <sys/ioctl.h>
@ -162,7 +163,7 @@ smb_t2_request(struct smb_ctx *ctx, int setup, int setupcount,
bzero(&krq, sizeof(krq));
krq.ioc_setup[0] = setup;
krq.ioc_setupcnt = setupcount;
(const char*)krq.ioc_name = name;
krq.ioc_name = (char *)name;
krq.ioc_tparamcnt = tparamcnt;
krq.ioc_tparam = tparam;
krq.ioc_tdatacnt = tdatacnt;