diff mbox

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

Message ID 1402870653-16086-1-git-send-email-jeroen@myspectrum.nl
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Jeroen Hofstee June 15, 2014, 10:17 p.m. UTC
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
---
 common/autoboot.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Tom Rini June 19, 2014, 3:23 p.m. UTC | #1
On Mon, Jun 16, 2014 at 12:17:33AM +0200, Jeroen Hofstee wrote:

> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>

Applied to u-boot/master, thanks!
diff mbox

Patch

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];