diff options
author | dim <dim@FreeBSD.org> | 2013-10-10 16:25:53 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-10-10 16:25:53 +0000 |
commit | ee09e09e18dadec88f8003162abd4820c128df3f (patch) | |
tree | b83245d0c490fc27fc2c4a3adbf7b37352827c9e /sys/dev/hyperv/storvsc/hv_vstorage.h | |
parent | 83e71fe4f722622edac7f1b6b79ea5e801a75ea8 (diff) | |
download | FreeBSD-src-ee09e09e18dadec88f8003162abd4820c128df3f.zip FreeBSD-src-ee09e09e18dadec88f8003162abd4820c128df3f.tar.gz |
In sys/dev/hyperv, fix a number of gcc warnings about usage of anonymous
union members in strict C99, by giving them names. While here, add some
FreeBSD keywords where they were missing.
Approved by: re (gjb)
Reviewed by: grehan
Diffstat (limited to 'sys/dev/hyperv/storvsc/hv_vstorage.h')
-rw-r--r-- | sys/dev/hyperv/storvsc/hv_vstorage.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/hyperv/storvsc/hv_vstorage.h b/sys/dev/hyperv/storvsc/hv_vstorage.h index d01d084..2632676 100644 --- a/sys/dev/hyperv/storvsc/hv_vstorage.h +++ b/sys/dev/hyperv/storvsc/hv_vstorage.h @@ -24,6 +24,8 @@ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * $FreeBSD$ */ #ifndef __HV_VSTORAGE_H__ @@ -107,7 +109,7 @@ struct vmscsi_req { uint8_t sense_data[SENSE_BUFFER_SIZE]; uint8_t reserved_array[MAX_DATA_BUFFER_LENGTH_WITH_PADDING]; - }; + } u; } __packed; @@ -191,7 +193,7 @@ struct vstor_packet { * Used during version negotiations. */ struct vmstor_proto_ver version; - }; + } u; } __packed; |