summaryrefslogtreecommitdiff
path: root/usr.bin/jot
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-10 22:20:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-10 22:20:55 +0000
commitb8aaa8bec8414f8e55cf9b61fe0873d242c773b8 (patch)
tree5e43016c4fae834239fd38972fd58355ed6b54b5 /usr.bin/jot
parentf18f6607440f6d2da08fac3522d88a65c77a5f3e (diff)
mostly ansi cleanup; pval ok
Diffstat (limited to 'usr.bin/jot')
-rw-r--r--usr.bin/jot/jot.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c
index 1ab0cb21d54..8043ee4b81b 100644
--- a/usr.bin/jot/jot.c
+++ b/usr.bin/jot/jot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: jot.c,v 1.12 2003/06/03 02:56:09 millert Exp $ */
+/* $OpenBSD: jot.c,v 1.13 2003/06/10 22:20:47 deraadt Exp $ */
/* $NetBSD: jot.c,v 1.3 1994/12/02 20:29:43 pk Exp $ */
/*-
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)jot.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: jot.c,v 1.12 2003/06/03 02:56:09 millert Exp $";
+static char rcsid[] = "$OpenBSD: jot.c,v 1.13 2003/06/10 22:20:47 deraadt Exp $";
#endif /* not lint */
/*
@@ -85,9 +85,7 @@ void putdata(double, long);
static void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
double xd, yd;
long id;
@@ -290,9 +288,7 @@ main(argc, argv)
}
void
-putdata(x, notlast)
- double x;
- long notlast;
+putdata(double x, long notlast)
{
long d = x;
long *dp = &d;
@@ -316,8 +312,7 @@ usage(void)
}
int
-getprec(s)
- char *s;
+getprec(char *s)
{
char *p;
char *q;
@@ -334,7 +329,7 @@ getprec(s)
}
void
-getformat()
+getformat(void)
{
char *p;
size_t sz;