diff options
author | phk <phk@FreeBSD.org> | 1995-02-15 19:41:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-02-15 19:41:38 +0000 |
commit | c89046c5551c9d22af39898dd39354fd4f5cae44 (patch) | |
tree | 0925d14713f0c081746d1dfd7040d11c0cd7b5b9 /usr.sbin/ctm/ctm_rmail/ctm_rmail.c | |
parent | 3284a97842ca04a7aaf548b95d900c108a0dbb7e (diff) | |
download | FreeBSD-src-c89046c5551c9d22af39898dd39354fd4f5cae44.zip FreeBSD-src-c89046c5551c9d22af39898dd39354fd4f5cae44.tar.gz |
Various nitpicking from Stephen.
Reviewed by: phk
Submitted by: Stephen McKay <syssgm@devetir.qld.gov.au>
Diffstat (limited to 'usr.sbin/ctm/ctm_rmail/ctm_rmail.c')
-rw-r--r-- | usr.sbin/ctm/ctm_rmail/ctm_rmail.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/ctm/ctm_rmail/ctm_rmail.c b/usr.sbin/ctm/ctm_rmail/ctm_rmail.c index e4be5a4..0f45d6b 100644 --- a/usr.sbin/ctm/ctm_rmail/ctm_rmail.c +++ b/usr.sbin/ctm/ctm_rmail/ctm_rmail.c @@ -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; |