summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/fio.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mail/fio.c')
-rw-r--r--usr.bin/mail/fio.c48
1 files changed, 13 insertions, 35 deletions
diff --git a/usr.bin/mail/fio.c b/usr.bin/mail/fio.c
index b00f485..1b0efea 100644
--- a/usr.bin/mail/fio.c
+++ b/usr.bin/mail/fio.c
@@ -10,10 +10,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
@@ -60,9 +56,7 @@ extern int wait_status;
* Set up the input pointers while copying the mail file into /tmp.
*/
void
-setptr(ibuf, offset)
- FILE *ibuf;
- off_t offset;
+setptr(FILE *ibuf, off_t offset)
{
int c, count;
char *cp, *cp2;
@@ -167,10 +161,7 @@ setptr(ibuf, offset)
* characters written, including the newline if requested.
*/
int
-putline(obuf, linebuf, outlf)
- FILE *obuf;
- char *linebuf;
- int outlf;
+putline(FILE *obuf, char *linebuf, int outlf)
{
int c;
@@ -191,10 +182,7 @@ putline(obuf, linebuf, outlf)
* include the newline (or carriage return) at the end.
*/
int
-readline(ibuf, linebuf, linesize)
- FILE *ibuf;
- char *linebuf;
- int linesize;
+readline(FILE *ibuf, char *linebuf, int linesize)
{
int n;
@@ -214,8 +202,7 @@ readline(ibuf, linebuf, linesize)
* passed message pointer.
*/
FILE *
-setinput(mp)
- struct message *mp;
+setinput(struct message *mp)
{
(void)fflush(otf);
@@ -230,9 +217,7 @@ setinput(mp)
* a dynamically allocated message structure.
*/
void
-makemessage(f, omsgCount)
- FILE *f;
- int omsgCount;
+makemessage(FILE *f, int omsgCount)
{
size_t size;
struct message *nmessage;
@@ -262,9 +247,7 @@ makemessage(f, omsgCount)
* If the write fails, return 1, else 0
*/
int
-append(mp, f)
- struct message *mp;
- FILE *f;
+append(struct message *mp, FILE *f)
{
return (fwrite((char *)mp, sizeof(*mp), 1, f) != 1);
}
@@ -273,8 +256,7 @@ append(mp, f)
* Delete a file, but only if the file is a plain file.
*/
int
-rm(name)
- char *name;
+rm(char *name)
{
struct stat sb;
@@ -293,7 +275,7 @@ static sigset_t nset, oset;
* Hold signals SIGHUP, SIGINT, and SIGQUIT.
*/
void
-holdsigs()
+holdsigs(void)
{
if (sigdepth++ == 0) {
@@ -309,7 +291,7 @@ holdsigs()
* Release signals SIGHUP, SIGINT, and SIGQUIT.
*/
void
-relsesigs()
+relsesigs(void)
{
if (--sigdepth == 0)
@@ -321,8 +303,7 @@ relsesigs()
* the passed buffer.
*/
off_t
-fsize(iob)
- FILE *iob;
+fsize(FILE *iob)
{
struct stat sbuf;
@@ -343,8 +324,7 @@ fsize(iob)
* Return the file name as a dynamic string.
*/
char *
-expand(name)
- char *name;
+expand(char *name)
{
char xname[PATHSIZE];
char cmdbuf[PATHSIZE]; /* also used for file names */
@@ -436,9 +416,7 @@ expand(name)
* Determine the current folder directory name.
*/
int
-getfold(name, namelen)
- char *name;
- int namelen;
+getfold(char *name, int namelen)
{
char *folder;
int copylen;
@@ -457,7 +435,7 @@ getfold(name, namelen)
* Return the name of the dead.letter file.
*/
char *
-getdeadletter()
+getdeadletter(void)
{
char *cp;
OpenPOWER on IntegriCloud