File: 0001_clang_FTBFS.patch

package info (click to toggle)
ng 1.5~beta1-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,164 kB
  • sloc: ansic: 44,018; asm: 3,150; sh: 2,539; cpp: 1,234; makefile: 578
file content (29 lines) | stat: -rw-r--r-- 650 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/sys/default/tty.c
+++ b/sys/default/tty.c
@@ -281,7 +281,7 @@
 	if (row == bot) {		/* Case of one line insert is	*/
 		ttmove(row, 0);		/*	special			*/
 		tteeol();
-		return;
+		return 0;
 	}
 	if (CS && SR) {		/* Use scroll region and back index	*/
 		nl = bot - row;
@@ -289,7 +289,7 @@
 		ttmove(row, 0);
 		while (nchunk--) putpad(SR, nl);
 		ttnowindow();
-		return;
+		return 0;
 	} else if (insdel) {
 		ttmove(1+bot-nchunk, 0);
 		nl = nrow - ttrow;
@@ -321,7 +321,7 @@
 	if (row == bot) {		/* One line special case	*/
 		ttmove(row, 0);
 		tteeol();
-		return;
+		return 0;
 	}
 	if (CS) {			/* scrolling region	*/
 		nl = bot - row;