diff options
author | Mike Heffner <mikeh@FreeBSD.org> | 2001-02-08 05:58:55 +0000 |
---|---|---|
committer | Mike Heffner <mikeh@FreeBSD.org> | 2001-02-08 05:58:55 +0000 |
commit | 7a536c3b412e4c05def81c83db39c2780af5d5f4 (patch) | |
tree | e40bf26a35ad0caeaf5930c6590abcaebc722509 /usr.bin/lam | |
parent | aeacf525adcea7381098180faa715108dabe5f29 (diff) | |
download | src-7a536c3b412e4c05def81c83db39c2780af5d5f4.tar.gz src-7a536c3b412e4c05def81c83db39c2780af5d5f4.zip |
De-__P()-ify, convert K&R style declarations to ANSI ones
Notes
Notes:
svn path=/head/; revision=72153
Diffstat (limited to 'usr.bin/lam')
-rw-r--r-- | usr.bin/lam/lam.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c index c6cdf4fb4ee0..d98c61782f42 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; |