summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mail/tty.c')
-rw-r--r--usr.bin/mail/tty.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/usr.bin/mail/tty.c b/usr.bin/mail/tty.c
index 6948d04..f8635a2 100644
--- a/usr.bin/mail/tty.c
+++ b/usr.bin/mail/tty.c
@@ -10,10 +10,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
@@ -61,9 +57,7 @@ static int ttyset; /* We must now do erase/kill */
*/
int
-grabh(hp, gflags)
- struct header *hp;
- int gflags;
+grabh(struct header *hp, int gflags)
{
struct termios ttybuf;
sig_t saveint;
@@ -174,9 +168,7 @@ out:
*/
char *
-readtty(pr, src)
- const char *pr;
- char src[];
+readtty(const char *pr, char src[])
{
char ch, canonb[BUFSIZ];
int c;
@@ -276,8 +268,7 @@ redo:
* Receipt continuation.
*/
void
-ttystop(s)
- int s;
+ttystop(int s)
{
sig_t old_action = signal(s, SIG_DFL);
sigset_t nset;
@@ -291,10 +282,8 @@ ttystop(s)
longjmp(rewrite, 1);
}
-/*ARGSUSED*/
void
-ttyint(s)
- int s;
+ttyint(int s __unused)
{
longjmp(intjmp, 1);
}
OpenPOWER on IntegriCloud