summaryrefslogtreecommitdiffstats
path: root/bin/stty/print.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-02 06:50:57 +0000
committerimp <imp@FreeBSD.org>2002-02-02 06:50:57 +0000
commit5ef5088ac4e038d0a147a08377ef087fd6edf527 (patch)
tree01a827446e9ba4f34cf1e754fcac691f6c9eb1cf /bin/stty/print.c
parent50014e35418ca00d25ea852fc4f94acf80be4df3 (diff)
downloadFreeBSD-src-5ef5088ac4e038d0a147a08377ef087fd6edf527.zip
FreeBSD-src-5ef5088ac4e038d0a147a08377ef087fd6edf527.tar.gz
o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o Change int foo() { ... to int foo(void) { ...
Diffstat (limited to 'bin/stty/print.c')
-rw-r--r--bin/stty/print.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/bin/stty/print.c b/bin/stty/print.c
index 6aff06a..63fe8d6 100644
--- a/bin/stty/print.c
+++ b/bin/stty/print.c
@@ -50,16 +50,12 @@ static const char rcsid[] =
#include <sys/ioctl_compat.h> /* XXX NTTYDISC is too well hidden */
-static void binit __P((const char *));
-static void bput __P((const char *));
-static const char *ccval __P((struct cchar *, int));
+static void binit(const char *);
+static void bput(const char *);
+static const char *ccval(struct cchar *, int);
void
-print(tp, wp, ldisc, fmt)
- struct termios *tp;
- struct winsize *wp;
- int ldisc;
- enum FMT fmt;
+print(struct termios *tp, struct winsize *wp, int ldisc, enum FMT fmt)
{
struct cchar *p;
long tmp;
@@ -228,8 +224,7 @@ static int col;
static const char *label;
static void
-binit(lb)
- const char *lb;
+binit(const char *lb)
{
if (col) {
@@ -240,8 +235,7 @@ binit(lb)
}
static void
-bput(s)
- const char *s;
+bput(const char *s)
{
if (col == 0) {
@@ -257,9 +251,7 @@ bput(s)
}
static const char *
-ccval(p, c)
- struct cchar *p;
- int c;
+ccval(struct cchar *p, int c)
{
static char buf[5];
char *bp;
OpenPOWER on IntegriCloud