shithub: riscv

Download patch

ref: 65f4f6919fe4a680609eba456cd404ea6eb26d35
parent: d1cebf608b05e45b148108ac6c16ae94f6862097
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat May 27 17:00:26 EDT 2023

ip/ppp: fix broken switch

--- a/sys/src/cmd/ip/ppp/ppp.c
+++ b/sys/src/cmd/ip/ppp/ppp.c
@@ -2909,10 +2909,10 @@
 	case 4:	/* [local [remote [local2 [remote2]]]] */
 		if (parseip(remip[1], argv[3]) == -1)
 			sysfatal("bad ip %s", argv[3]);
-	case 3:	/* [local [remote [local2]]]
+	case 3:	/* [local [remote [local2]]] */
 		if (parseip(ipaddr[1], argv[2]) == -1)
 			sysfatal("bad ip %s", argv[2]);
-	case 2:	/* [local [remote]]
+	case 2:	/* [local [remote]] */
 		if (parseip(remip[0], argv[1]) == -1)
 			sysfatal("bad ip %s", argv[1]);
 	case 1:	/* [local] */