summaryrefslogtreecommitdiffstats
path: root/libexec/getty
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2000-01-28 07:12:03 +0000
committerbde <bde@FreeBSD.org>2000-01-28 07:12:03 +0000
commitb728454c06249df268fb779037aa46b4ce70c0d0 (patch)
tree287ec42b1a6bfcc643c8d73886d2b2ad88b770ce /libexec/getty
parent9d11326d8605120adbea532fa69211355d967edf (diff)
downloadFreeBSD-src-b728454c06249df268fb779037aa46b4ce70c0d0.zip
FreeBSD-src-b728454c06249df268fb779037aa46b4ce70c0d0.tar.gz
Changed setflags() to set_flags(). This fixes world breakage due to
recently incremented namespace pollution in <unistd.h>.
Diffstat (limited to 'libexec/getty')
-rw-r--r--libexec/getty/extern.h2
-rw-r--r--libexec/getty/main.c6
-rw-r--r--libexec/getty/subr.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/libexec/getty/extern.h b/libexec/getty/extern.h
index 94fe3cc..b7bb585 100644
--- a/libexec/getty/extern.h
+++ b/libexec/getty/extern.h
@@ -58,6 +58,6 @@ const char *portselector __P((void));
void set_ttydefaults __P((int));
void setchars __P((void));
void setdefaults __P((void));
-void setflags __P((int));
+void set_flags __P((int));
int speed __P((int));
int getty_chat __P((char *, int, int));
diff --git a/libexec/getty/main.c b/libexec/getty/main.c
index 0eac55b..0353631 100644
--- a/libexec/getty/main.c
+++ b/libexec/getty/main.c
@@ -386,7 +386,7 @@ main(argc, argv)
}
if (!(upper || lower || digit))
continue;
- setflags(2);
+ set_flags(2);
if (crmod) {
tmode.c_iflag |= ICRNL;
tmode.c_oflag |= ONLCR;
@@ -486,7 +486,7 @@ setttymode(tname, raw)
cfsetospeed(&tmode, speed(OS));
else if (SP)
cfsetospeed(&tmode, speed(SP));
- setflags(0);
+ set_flags(0);
setchars();
if (raw)
cfmakeraw(&tmode);
@@ -514,7 +514,7 @@ getname()
return (0);
}
signal(SIGINT, interrupt);
- setflags(1);
+ set_flags(1);
prompt();
oflush();
if (PF > 0) {
diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c
index 13c7bd0..2c7bf63 100644
--- a/libexec/getty/subr.c
+++ b/libexec/getty/subr.c
@@ -258,7 +258,7 @@ setchars()
#define ISSET(t, f) ((t) & (f))
void
-setflags(n)
+set_flags(n)
int n;
{
register tcflag_t iflag, oflag, cflag, lflag;
OpenPOWER on IntegriCloud