1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Various nitpicking from Stephen.

Reviewed by:	phk
Submitted by:	Stephen McKay <syssgm@devetir.qld.gov.au>
This commit is contained in:
Poul-Henning Kamp 1995-02-15 19:41:38 +00:00
parent 9b3f7fd62d
commit 7f8573b091
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6457
4 changed files with 7 additions and 9 deletions

View File

@ -135,7 +135,7 @@ and processed with a single command.
.Sh FILE FORMAT
Following are the important parts of an actual (very small) delta piece:
.Bd -literal
From: src-cur-owner
From: owner-src-cur
To: src-cur
Subject: ctm-mail src-cur.0003.gz 1/4
@ -160,7 +160,7 @@ If the delta exceeds
.Ar maxctmsize ,
then a message like this will be received instead:
.Bd -literal
From: src-cur-owner
From: owner-src-cur
To: src-cur
Subject: ctm-notice src-cur.0999.gz

View File

@ -12,7 +12,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
@ -47,7 +46,6 @@ int decode_line(char *line, char *out_buf);
* reflected in the exit status. In this case, the delta is left in
* 'deltadir'.
*/
int
main(int argc, char **argv)
{
@ -67,7 +65,7 @@ main(int argc, char **argv)
if (delta_dir == NULL)
usage();
if (piece_dir == NULL && (base_dir == NULL || argc>1))
if (piece_dir == NULL && (base_dir == NULL || argc > 1))
usage();
if (log_file != NULL)
@ -234,7 +232,7 @@ read_piece(char *input_file)
{
char *s;
if (sscanf(line, "CTM_MAIL BEGIN %s %d %d %c",
if (sscanf(line, "CTM_MAIL BEGIN %s %d %d %c",
delta, &pce, &npieces, junk) != 3)
continue;

View File

@ -88,6 +88,7 @@ pusage()
while (O_cont) \
switch (*++*argv) \
{ \
default: \
case '-': \
usage(); \
case '\0': \
@ -130,8 +131,6 @@ pusage()
#define ENDOPTS \
break; \
default: \
usage(); \
} \
} \
*--argv = O_name; \

View File

@ -36,6 +36,7 @@ void apologise(char *delta, off_t ctm_size, long max_ctm_size,
FILE *open_sendmail(void);
int close_sendmail(FILE *fp);
int
main(int argc, char **argv)
{
@ -236,7 +237,7 @@ write_header(FILE *sfp, char *mail_alias, char *delta, int pce, int npieces)
else
sn++;
fprintf(sfp, "From: %s-owner\n", mail_alias);
fprintf(sfp, "From: owner-%s\n", mail_alias);
fprintf(sfp, "To: %s\n", mail_alias);
fprintf(sfp, "Subject: ctm-mail %s %d/%d\n\n", sn, pce, npieces);