Changed setflags() to set_flags(). This fixes world breakage due to

recently incremented namespace pollution in <unistd.h>.
This commit is contained in:
Bruce Evans 2000-01-28 07:12:03 +00:00
parent 173c0f9f5c
commit 21bac31e55
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56725
3 changed files with 5 additions and 5 deletions

View File

@ -58,6 +58,6 @@ const char *portselector __P((void));
void set_ttydefaults __P((int)); void set_ttydefaults __P((int));
void setchars __P((void)); void setchars __P((void));
void setdefaults __P((void)); void setdefaults __P((void));
void setflags __P((int)); void set_flags __P((int));
int speed __P((int)); int speed __P((int));
int getty_chat __P((char *, int, int)); int getty_chat __P((char *, int, int));

View File

@ -386,7 +386,7 @@ main(argc, argv)
} }
if (!(upper || lower || digit)) if (!(upper || lower || digit))
continue; continue;
setflags(2); set_flags(2);
if (crmod) { if (crmod) {
tmode.c_iflag |= ICRNL; tmode.c_iflag |= ICRNL;
tmode.c_oflag |= ONLCR; tmode.c_oflag |= ONLCR;
@ -486,7 +486,7 @@ setttymode(tname, raw)
cfsetospeed(&tmode, speed(OS)); cfsetospeed(&tmode, speed(OS));
else if (SP) else if (SP)
cfsetospeed(&tmode, speed(SP)); cfsetospeed(&tmode, speed(SP));
setflags(0); set_flags(0);
setchars(); setchars();
if (raw) if (raw)
cfmakeraw(&tmode); cfmakeraw(&tmode);
@ -514,7 +514,7 @@ getname()
return (0); return (0);
} }
signal(SIGINT, interrupt); signal(SIGINT, interrupt);
setflags(1); set_flags(1);
prompt(); prompt();
oflush(); oflush();
if (PF > 0) { if (PF > 0) {

View File

@ -258,7 +258,7 @@ setchars()
#define ISSET(t, f) ((t) & (f)) #define ISSET(t, f) ((t) & (f))
void void
setflags(n) set_flags(n)
int n; int n;
{ {
register tcflag_t iflag, oflag, cflag, lflag; register tcflag_t iflag, oflag, cflag, lflag;