summaryrefslogtreecommitdiff
path: root/sysutils/cotty/files/patch-cotty-0.4c.c
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-08-22 19:41:04 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-08-22 19:41:04 +0000
commitf1a2ff6ffe9ab742f6855b8de64d944bbae57112 (patch)
tree120fa085b1c30e94426f023cf5160f05bc2f6371 /sysutils/cotty/files/patch-cotty-0.4c.c
parentFix build with gcc-3.4 (diff)
Fix build with gcc-3.4
Diffstat (limited to 'sysutils/cotty/files/patch-cotty-0.4c.c')
-rw-r--r--sysutils/cotty/files/patch-cotty-0.4c.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/sysutils/cotty/files/patch-cotty-0.4c.c b/sysutils/cotty/files/patch-cotty-0.4c.c
new file mode 100644
index 000000000000..302d0b746512
--- /dev/null
+++ b/sysutils/cotty/files/patch-cotty-0.4c.c
@@ -0,0 +1,34 @@
+
+$FreeBSD$
+
+--- cotty-0.4c.c.orig Sun Aug 22 21:39:06 2004
++++ cotty-0.4c.c Sun Aug 22 21:40:01 2004
+@@ -748,6 +748,7 @@
+ return 1;
+ case normal:
+ case keep_current:
++ break;
+ }
+ return 2;
+ }
+@@ -762,7 +763,8 @@
+ case normal:
+ case keep_current:
+ case direct:
+- }
++ break;
++ }
+ return 2;
+ }
+
+@@ -989,8 +991,8 @@
+ strcpy(tty_name[1],pty_name[0]);
+ strcpy(pty_name[1],tty_name[0]);
+ break;
+- case normal:
+- case keep_current:
++ case normal: break;
++ case keep_current: break;
+ }
+ /* we don't need those null fds anymore */
+ for (j=0;j<3;j++) {