Cleanup for GCC 2.

This commit is contained in:
mycroft 1993-04-19 07:03:56 +00:00
parent cbe290f125
commit 87d1fd6d8a
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 *));
int look __P((char *, char *, char *));
void print_from __P((char *, char *, char *));
void usage __P((void));
static void usage __P((void));
main(argc, argv)
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 MBIT CBREAK
#ifndef stty
#define stty(fd,argp) ioctl(fd,TIOCSETN,argp)
#endif
#define TBUFSIZ 1024
#define LINSIZ 256
@ -1582,6 +1584,7 @@ retry:
if (Home == 0 || *Home == '\0')
{
if ((cursorm = tgetstr("cm", &clearptr)) != NULL) {
char *tgoto();
strcpy(cursorhome, tgoto(cursorm, 0, 0));
Home = cursorhome;
}