commands/splash: fix '-y' option handling
PATCH 1/1 commands/splash: fix '-y' option handling
The '-y' and '-o' options are independent,
so just add missing 'break'.
--- commands/splash.c | 1 + 1 file changed, 1 insertion(+)
commands/splash.c +1 -0
@@ -41,6 +41,7 @@ static int do_splash(int argc, char *argv[])break ;case 'y' : s.y =simple_strtoul (optarg,NULL ,0 ); +break ;case 'o' : offscreen =1 ; }
Signature · 7 lines
2.1.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 4 lines · Antony Pavlov
The '-y' and '-o' options are independent,
so just add missing 'break'.Signed-off-by Antony Pavlov <[email protected]>
Applied, thanks.
Quoted 9 lines
--- commands/splash.c | 1 + 1 file changed, 1 insertion(+)commands/splash.c +0
-0
commands/splash.c static int do_splash(int argc, char *argv[]) · line 46
Quoted 6 lines
commands/splash.c +1
-0@@ -41,6 +41,7 @@ static int do_splash(int argc, char *argv[])break ;case 'y' : s.y =simple_strtoul (optarg,NULL ,0 ); +break ;case 'o' : offscreen =1 ;
It is missing here aswell. It's the last case, so this is not currently a bug, but it could easily turn into a bug once the next option is added.
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 25 lines · Antony Pavlov
The '-y' and '-o' options are independent,
so just add missing 'break'.Signed-off-by Antony Pavlov <[email protected]>---
commands/splash.c| 1 +1 file changed, 1 insertion(+)commands/splash.c +1
-0@@ -41,6 +41,7 @@ static int do_splash(int argc, char *argv[])break ;case 'y' : s.y =simple_strtoul (optarg,NULL ,0 ); +break ;case 'o' : offscreen =1 ; }Signature · 1 line
2.1.4
I already send a patch weeks ago to fix
Best Regards,
J.
Quoted 6 lines
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 11 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 11 lines · Antony Pavlov
The '-y' and '-o' options are independent,
so just add missing 'break'.Signed-off-by Antony Pavlov <[email protected]>---
commands/splash.c| 1 +1 file changed, 1 insertion(+)
Quoted 16 lines
Quoted 14 lines
commands/splash.c +1
-0@@ -41,6 +41,7 @@ static int do_splash(int argc, char *argv[])break ;case 'y' : s.y =simple_strtoul (optarg,NULL ,0 ); +break ;case 'o' : offscreen =1 ; }Signature · 1 line
2.1.4I already send a patch weeks ago to fix
I can only find this patch from you about splash in the last few months:
[PATCH 2/2] command/splash: fix return value
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox