Cleanup for GCC 2.

This commit is contained in:
mycroft 1993-04-19 07:03:56 +00:00
parent 172b2a0477
commit ef0e3710ea
2 changed files with 4 additions and 1 deletions

View File

@ -86,7 +86,7 @@ void err __P((const char *fmt, ...));
char *linear_search __P((char *, char *, char *)); char *linear_search __P((char *, char *, char *));
int look __P((char *, char *, char *)); int look __P((char *, char *, char *));
void print_from __P((char *, char *, char *)); void print_from __P((char *, char *, char *));
void usage __P((void)); static void usage __P((void));
main(argc, argv) main(argc, argv)
int argc; int argc;

View File

@ -71,7 +71,9 @@ static char sccsid[] = "@(#)more.c 5.26 (Berkeley) 4/18/91";
#define Ungetc(c,f) (--file_pos, ungetc(c,f)) #define Ungetc(c,f) (--file_pos, ungetc(c,f))
#define MBIT CBREAK #define MBIT CBREAK
#ifndef stty
#define stty(fd,argp) ioctl(fd,TIOCSETN,argp) #define stty(fd,argp) ioctl(fd,TIOCSETN,argp)
#endif
#define TBUFSIZ 1024 #define TBUFSIZ 1024
#define LINSIZ 256 #define LINSIZ 256
@ -1582,6 +1584,7 @@ retry:
if (Home == 0 || *Home == '\0') if (Home == 0 || *Home == '\0')
{ {
if ((cursorm = tgetstr("cm", &clearptr)) != NULL) { if ((cursorm = tgetstr("cm", &clearptr)) != NULL) {
char *tgoto();
strcpy(cursorhome, tgoto(cursorm, 0, 0)); strcpy(cursorhome, tgoto(cursorm, 0, 0));
Home = cursorhome; Home = cursorhome;
} }