aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-08-23 03:41:04 +0800
committerkrion <krion@FreeBSD.org>2004-08-23 03:41:04 +0800
commit90a1953d05060a04f360bd63ffb87af1e0531388 (patch)
tree6dd5649e32cc96d6e55256511b06173ceb91acf6 /sysutils
parent168fed9536857af69bf66bd68cbfa2c6957ec515 (diff)
downloadfreebsd-ports-gnome-90a1953d05060a04f360bd63ffb87af1e0531388.tar.gz
freebsd-ports-gnome-90a1953d05060a04f360bd63ffb87af1e0531388.tar.zst
freebsd-ports-gnome-90a1953d05060a04f360bd63ffb87af1e0531388.zip
Fix build with gcc-3.4
Diffstat (limited to 'sysutils')
-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++) {