Module Name:    src
Committed By:   mrg
Date:           Mon Apr 12 09:22:21 UTC 2021

Modified Files:
        src/sys/dev/ieee1394: firewire.h

Log Message:
convert union member from [0] array to [3] array, so that attempts
to access these members later will  work.

does not affect size of the structure or layout in any other way.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/ieee1394/firewire.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ieee1394/firewire.h
diff -u src/sys/dev/ieee1394/firewire.h:1.6 src/sys/dev/ieee1394/firewire.h:1.7
--- src/sys/dev/ieee1394/firewire.h:1.6	Sun Nov 14 15:47:20 2010
+++ src/sys/dev/ieee1394/firewire.h	Mon Apr 12 09:22:21 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: firewire.h,v 1.6 2010/11/14 15:47:20 uebayasi Exp $	*/
+/*	$NetBSD: firewire.h,v 1.7 2021/04/12 09:22:21 mrg Exp $	*/
 /*-
  * Copyright (c) 2003 Hidetoshi Shimokawa
  * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa
@@ -142,7 +142,7 @@ struct fw_asyhdr {
 
 struct fw_pkt {
 	union {
-		uint32_t ld[0];
+		uint32_t ld[3];
 		struct {
 			COMMON_HDR(, , tcode, );
 		} common;

Reply via email to