diff options
author | Philippe Charnier <charnier@FreeBSD.org> | 2010-12-19 16:25:23 +0000 |
---|---|---|
committer | Philippe Charnier <charnier@FreeBSD.org> | 2010-12-19 16:25:23 +0000 |
commit | 6d8484b0d0191b66f9bfd0dfa89c06a29647f02a (patch) | |
tree | cb3d657c33bdf93a7127358a4d9a36796aa4d3dd /usr.bin/mail/edit.c | |
parent | ed1e1e2a9ea1e0e73057434ffbba8bbd565b3e1f (diff) | |
download | src-6d8484b0d0191b66f9bfd0dfa89c06a29647f02a.tar.gz src-6d8484b0d0191b66f9bfd0dfa89c06a29647f02a.zip |
Add __unused. Ansi prototypes.
Notes
Notes:
svn path=/head/; revision=216564
Diffstat (limited to 'usr.bin/mail/edit.c')
-rw-r--r-- | usr.bin/mail/edit.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/usr.bin/mail/edit.c b/usr.bin/mail/edit.c index 01f33f5ee500..d1ff37fd794f 100644 --- a/usr.bin/mail/edit.c +++ b/usr.bin/mail/edit.c @@ -49,8 +49,7 @@ __FBSDID("$FreeBSD$"); * Edit a message list. */ int -editor(msgvec) - int *msgvec; +editor(int *msgvec) { return (edit1(msgvec, 'e')); @@ -60,8 +59,7 @@ editor(msgvec) * Invoke the visual editor on a message list. */ int -visual(msgvec) - int *msgvec; +visual(int *msgvec) { return (edit1(msgvec, 'v')); @@ -73,9 +71,7 @@ visual(msgvec) * We get the editor from the stuff above. */ int -edit1(msgvec, type) - int *msgvec; - int type; +edit1(int *msgvec, int type) { int c, i; FILE *fp; @@ -137,10 +133,7 @@ edit1(msgvec, type) * "Type" is 'e' for _PATH_EX, 'v' for _PATH_VI. */ FILE * -run_editor(fp, size, type, readonly) - FILE *fp; - off_t size; - int type, readonly; +run_editor(FILE *fp, off_t size, int type, int readonly) { FILE *nf = NULL; int t; |