diff options
Diffstat (limited to 'usr/src/uts/common/io/zcons.c')
| -rw-r--r-- | usr/src/uts/common/io/zcons.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr/src/uts/common/io/zcons.c b/usr/src/uts/common/io/zcons.c index 9b768cce77..990aec1286 100644 --- a/usr/src/uts/common/io/zcons.c +++ b/usr/src/uts/common/io/zcons.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -378,7 +377,7 @@ zc_master_open(zc_state_t *zcs, */ mop->b_datap->db_type = M_SETOPTS; mop->b_wptr += sizeof (struct stroptions); - sop = (struct stroptions *)mop->b_rptr; + sop = (struct stroptions *)(void *)mop->b_rptr; if (oflag & FNOCTTY) sop->so_flags = SO_HIWAT | SO_LOWAT; else @@ -436,7 +435,7 @@ zc_slave_open(zc_state_t *zcs, */ mop->b_datap->db_type = M_SETOPTS; mop->b_wptr += sizeof (struct stroptions); - sop = (struct stroptions *)mop->b_rptr; + sop = (struct stroptions *)(void *)mop->b_rptr; sop->so_flags = SO_HIWAT | SO_LOWAT | SO_ISTTY; sop->so_hiwat = 512; sop->so_lowat = 256; |
