diff options
author | kan <kan@FreeBSD.org> | 2004-07-28 05:33:58 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2004-07-28 05:33:58 +0000 |
commit | 6e16eb36f466b0edf3b9ea126a3fe90a73584882 (patch) | |
tree | f15e73776b73a618b262bf1b40200fac0c2864a5 /contrib/smbfs/lib | |
parent | 482ec87e2d520becf14d5640e496de11985b1f88 (diff) | |
download | FreeBSD-src-6e16eb36f466b0edf3b9ea126a3fe90a73584882.zip FreeBSD-src-6e16eb36f466b0edf3b9ea126a3fe90a73584882.tar.gz |
Do not use casts as lvalues.
Diffstat (limited to 'contrib/smbfs/lib')
-rw-r--r-- | contrib/smbfs/lib/smb/file.c | 3 | ||||
-rw-r--r-- | contrib/smbfs/lib/smb/rq.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/contrib/smbfs/lib/smb/file.c b/contrib/smbfs/lib/smb/file.c index 9408576..2ac3300 100644 --- a/contrib/smbfs/lib/smb/file.c +++ b/contrib/smbfs/lib/smb/file.c @@ -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) diff --git a/contrib/smbfs/lib/smb/rq.c b/contrib/smbfs/lib/smb/rq.c index c410753..fccbc46 100644 --- a/contrib/smbfs/lib/smb/rq.c +++ b/contrib/smbfs/lib/smb/rq.c @@ -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; |