X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frcvpack.c;h=a89d1fe78cb20f387beabca00424cc467651d9e1;hp=b1bc518e1c14e7e6de96e39127e8a70282e32da4;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hpb=337338b404931f06f0db2119c9e145e8ca5a9860 diff --git a/uip/rcvpack.c b/uip/rcvpack.c index b1bc518..a89d1fe 100644 --- a/uip/rcvpack.c +++ b/uip/rcvpack.c @@ -1,10 +1,10 @@ /* - * rcvpack.c -- append message to a file - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** rcvpack.c -- append message to a file +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include #include @@ -25,8 +25,8 @@ static struct swit switches[] = { }; /* - * default format in which to save messages - */ +** default format in which to save messages +*/ static int mbx_style = MBOX_FORMAT; @@ -60,7 +60,9 @@ main (int argc, char **argv) adios (NULL, "-%s unknown", cp); case HELPSW: - snprintf (buf, sizeof(buf), "%s [switches] file", invo_name); + snprintf (buf, sizeof(buf), + "%s [switches] file", + invo_name); print_help (buf, switches, 1); done (1); case VERSIONSW: @@ -87,11 +89,13 @@ main (int argc, char **argv) rewind (stdin); /* open and lock the file */ - if ((md = mbx_open (file, mbx_style, getuid(), getgid(), m_gmprot())) == NOTOK) + if ((md = mbx_open (file, mbx_style, getuid(), getgid(), m_gmprot())) + == NOTOK) done (RCV_MBX); /* append the message */ - if (mbx_copy (file, mbx_style, md, fileno(stdin), 1, NULL, 0) == NOTOK) { + if (mbx_copy (file, mbx_style, md, fileno(stdin), 1, NULL, 0) + == NOTOK) { mbx_close (file, md); done (RCV_MBX); }