summaryrefslogtreecommitdiffstats
path: root/usr.bin/lam
diff options
context:
space:
mode:
authormikeh <mikeh@FreeBSD.org>2001-02-08 05:58:55 +0000
committermikeh <mikeh@FreeBSD.org>2001-02-08 05:58:55 +0000
commit6510c5af822dfb722f882db5457cc9afa88caf5c (patch)
treeb592547fc15f93b7c11f09d209fdd12ee8721357 /usr.bin/lam
parent71e073a651a9c72a1fec82183741b775f9abec3d (diff)
downloadFreeBSD-src-6510c5af822dfb722f882db5457cc9afa88caf5c.zip
FreeBSD-src-6510c5af822dfb722f882db5457cc9afa88caf5c.tar.gz
De-__P()-ify, convert K&R style declarations to ANSI ones
Diffstat (limited to 'usr.bin/lam')
-rw-r--r--usr.bin/lam/lam.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c
index c6cdf4f..d98c617 100644
--- a/usr.bin/lam/lam.c
+++ b/usr.bin/lam/lam.c
@@ -73,15 +73,13 @@ int nofinalnl; /* normally append \n to each output line */
char line[BIGBUFSIZ];
char *linep;
-char *gatherline __P((struct openfile *));
-void getargs __P((char *[]));
-char *pad __P((struct openfile *));
-static void usage __P((void));
+char *gatherline (struct openfile *);
+void getargs (char **);
+char *pad (struct openfile *);
+static void usage (void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char **argv)
{
struct openfile *ip;
@@ -102,8 +100,7 @@ main(argc, argv)
}
void
-getargs(av)
- char *av[];
+getargs(char **av)
{
struct openfile *ip = input;
char *p, *c;
@@ -180,8 +177,7 @@ getargs(av)
}
char *
-pad(ip)
- struct openfile *ip;
+pad(struct openfile *ip)
{
char *lp = linep;
@@ -195,8 +191,7 @@ pad(ip)
}
char *
-gatherline(ip)
- struct openfile *ip;
+gatherline(struct openfile *ip)
{
char s[BUFSIZ];
int c;
OpenPOWER on IntegriCloud