freebsd-ports/net/tintin++/files/patch-ad
Kris Kennaway 0108f5bf0d Split patch files into one patch per file.
Fix build on current by #including the relevant headers instead of
trying to guess declarations.
2002-08-23 19:35:21 +00:00

55 lines
1.6 KiB
Text

--- main.c.orig Thu Mar 25 11:26:53 1999
+++ main.c Tue Sep 26 17:27:58 2000
@@ -18,6 +18,7 @@
#include <signal.h>
#include "tintin.h"
#include <fcntl.h>
+#include <termios.h>
#ifndef BADSIG
#define BADSIG (void (*)())-1
@@ -109,7 +110,7 @@
tcflag_t c_lflag;
cc_t c_cc[NCCS];
#else
-unsigned char c_cc[NCC];
+unsigned char c_cc[NCCS];
unsigned short c_lflag;
#endif
@@ -580,7 +581,7 @@
if(ses->logfile) {
if (!OLD_LOG) {
count=0;
- for(n=0;n<=didget;n++)
+ for(n=0;n<didget;n++)
if (buffer[n]!='\r') {
temp[count]=buffer[n];
count++;
@@ -750,7 +751,7 @@
sprintf(strng,"%c8%s\n\r%c7%c[%d;%df", E, cptr, E, E, input_row, input_col);
else
sprintf(strng,"%s\n\r", cptr);
- write(1,strng, strlen(strng)+1);
+ write(1,strng, strlen(strng));
display_col=1;
if (redraw && term_echoing && !is_split)
write(1, k_input, strlen(k_input));
@@ -806,7 +807,7 @@
cptr++;
sprintf(strng,"%s\n\r", cptr);
}
- write(1,strng, strlen(strng)+1);
+ write(1,strng, strlen(strng));
display_col=1;
}
text_came=TRUE;
@@ -876,7 +877,7 @@
input_col=1;
sprintf(fn, "%c[2J%c[1;%dr%c[%d;1f", E, E, display_row, E, split_line);
write(1,fn, strlen(fn));
- write(1,"-------------------------------------------------------------------------------", 80);
+ write(1,"--------------------------------------------------------------------------------", 80);
sprintf(fn, "%c[%d;1f%c7", E, split_line-1, E);
write(1,fn,strlen(fn));
sprintf(fn, "%c[%d;1f", E, input_row);