[U-Boot] [PATCH] cosmetic: autoboot: update old style GNU struct init

Jeroen Hofstee jeroen at myspectrum.nl
Mon Jun 16 00:17:33 CEST 2014


Signed-off-by: Jeroen Hofstee <jeroen at myspectrum.nl>
---
 common/autoboot.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/common/autoboot.c b/common/autoboot.c
index dc24cae..30102a4 100644
--- a/common/autoboot.c
+++ b/common/autoboot.c
@@ -40,10 +40,10 @@ static int abortboot_keyed(int bootdelay)
 		int retry;
 	}
 	delaykey[] = {
-		{ str: getenv("bootdelaykey"),  retry: 1 },
-		{ str: getenv("bootdelaykey2"), retry: 1 },
-		{ str: getenv("bootstopkey"),   retry: 0 },
-		{ str: getenv("bootstopkey2"),  retry: 0 },
+		{ .str = getenv("bootdelaykey"),  .retry = 1 },
+		{ .str = getenv("bootdelaykey2"), .retry = 1 },
+		{ .str = getenv("bootstopkey"),   .retry = 0 },
+		{ .str = getenv("bootstopkey2"),  .retry = 0 },
 	};
 
 	char presskey[MAX_DELAY_STOP_STR];
-- 
1.8.3.2



More information about the U-Boot mailing list