Skip to contentSkip to conversation

commands/splash: fix '-y' option handling

PATCH Applied Antony Pavlov 3 participants 4 messages Jan 25, 2015 – Jan 26, 2015

lore
Share & tools
lore
#0 lore raw

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
index 9bd84fb..077c0e4 100644
@@ -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
Applied
#1 lore raw
Quoted 4 lines · Antony Pavlov

The '-y' and '-o' options are independent,
so just add missing 'break'.

Applied, thanks.

Quoted 9 lines
---
 commands/splash.c | 1 +
 1 file changed, 1 insertion(+)
commands/splash.c +0 -0
index 9bd84fb..077c0e4 100644

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
#2 lore raw
In reply to Antony Pavlov
Quoted 25 lines · Antony Pavlov

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
index 9bd84fb..077c0e4 100644
@@ -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

#3 lore raw
Quoted 11 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 11 lines · Antony Pavlov

The '-y' and '-o' options are independent,
so just add missing 'break'.

---
commands/splash.c | 1 +

1 file changed, 1 insertion(+)
Quoted 16 lines
Quoted 14 lines
commands/splash.c +1 -0
index 9bd84fb..077c0e4 100644
@@ -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

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