Module Name: src Committed By: joerg Date: Fri Nov 27 16:52:32 UTC 2015
Modified Files: src/sys/arch/sparc/stand/boot: boot.c Log Message: Don't use dynamically sized unions, they are a horrible GNUism. Just use the existing upper limit all the time. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/arch/sparc/stand/boot/boot.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sparc/stand/boot/boot.c diff -u src/sys/arch/sparc/stand/boot/boot.c:1.28 src/sys/arch/sparc/stand/boot/boot.c:1.29 --- src/sys/arch/sparc/stand/boot/boot.c:1.28 Mon May 28 19:24:29 2012 +++ src/sys/arch/sparc/stand/boot/boot.c Fri Nov 27 16:52:32 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: boot.c,v 1.28 2012/05/28 19:24:29 martin Exp $ */ +/* $NetBSD: boot.c,v 1.29 2015/11/27 16:52:32 joerg Exp $ */ /*- * Copyright (c) 1982, 1986, 1990, 1993 @@ -348,7 +348,7 @@ main(void) if (i < BOOTINFO_SIZE / 2) { union { struct btinfo_kernelfile bi_file; - char x[i]; + char x[BOOTINFO_SIZE / 2]; } U; strcpy(U.bi_file.name, kernel); bi_add(&U.bi_file, BTINFO_KERNELFILE, i);