diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 06:41:30 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 06:41:30 +0000 |
commit | a14d555c873398b14776ca4f2c33f9c69617afb9 (patch) | |
tree | 350f6f98843363254f9afe467ae0c92d5a9d7f43 /usr.bin/ar | |
parent | f3a2b348daf9fa6063c38d2d69563f732a2f80e7 (diff) | |
download | FreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.zip FreeBSD-src-a14d555c873398b14776ca4f2c33f9c69617afb9.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'usr.bin/ar')
-rw-r--r-- | usr.bin/ar/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/ar/append.c | 2 | ||||
-rw-r--r-- | usr.bin/ar/ar.c | 2 | ||||
-rw-r--r-- | usr.bin/ar/archive.c | 10 | ||||
-rw-r--r-- | usr.bin/ar/contents.c | 4 | ||||
-rw-r--r-- | usr.bin/ar/delete.c | 2 | ||||
-rw-r--r-- | usr.bin/ar/extract.c | 2 | ||||
-rw-r--r-- | usr.bin/ar/misc.c | 2 | ||||
-rw-r--r-- | usr.bin/ar/move.c | 4 | ||||
-rw-r--r-- | usr.bin/ar/replace.c | 8 |
10 files changed, 19 insertions, 19 deletions
diff --git a/usr.bin/ar/Makefile b/usr.bin/ar/Makefile index 70d5a4c..94bb84f 100644 --- a/usr.bin/ar/Makefile +++ b/usr.bin/ar/Makefile @@ -3,7 +3,7 @@ PROG= ar CFLAGS+=-I${.CURDIR} SRCS= append.c ar.c archive.c contents.c delete.c extract.c misc.c \ - move.c print.c replace.c + move.c print.c replace.c MAN1= ar.1 MAN5= ar.5 diff --git a/usr.bin/ar/append.c b/usr.bin/ar/append.c index 89db986..9bbe473 100644 --- a/usr.bin/ar/append.c +++ b/usr.bin/ar/append.c @@ -85,5 +85,5 @@ append(argv) (void)close(fd); } close_archive(afd); - return (eval); + return (eval); } diff --git a/usr.bin/ar/ar.c b/usr.bin/ar/ar.c index 38089e8..6dbef56 100644 --- a/usr.bin/ar/ar.c +++ b/usr.bin/ar/ar.c @@ -234,4 +234,4 @@ usage() (void)fprintf(stderr, "\tar -t [-Tv] archive [file ...]\n"); (void)fprintf(stderr, "\tar -x [-ouTv] archive [file ...]\n"); exit(1); -} +} diff --git a/usr.bin/ar/archive.c b/usr.bin/ar/archive.c index cd704b9..ddd9f86 100644 --- a/usr.bin/ar/archive.c +++ b/usr.bin/ar/archive.c @@ -63,7 +63,7 @@ open_archive(mode) { int created, fd, nr; char buf[SARMAG]; - + created = 0; if (mode & O_CREAT) { mode |= O_EXCL; @@ -81,14 +81,14 @@ open_archive(mode) if ((fd = open(archive, mode, DEFFILEMODE)) < 0) error(archive); - /* - * Attempt to place a lock on the opened file - if we get an + /* + * Attempt to place a lock on the opened file - if we get an * error then someone is already working on this library (or * it's going across NFS). */ opened: if (flock(fd, LOCK_EX|LOCK_NB) && errno != EOPNOTSUPP) error(archive); - + /* * If not created, O_RDONLY|O_RDWR indicates that it has to be * in archive format. @@ -281,7 +281,7 @@ copy_ar(cfp, size) off_t sz; int from, nr, nw, off, to; char buf[8*1024]; - + if (!(sz = size)) return; diff --git a/usr.bin/ar/contents.c b/usr.bin/ar/contents.c index b2db77a..ffa4856 100644 --- a/usr.bin/ar/contents.c +++ b/usr.bin/ar/contents.c @@ -65,7 +65,7 @@ contents(argv) int afd, all; struct tm *tp; char *file, buf[25]; - + afd = open_archive(O_RDONLY); for (all = !*argv; get_arobj(afd);) { @@ -85,7 +85,7 @@ contents(argv) if (!all && !*argv) break; next: skip_arobj(afd); - } + } close_archive(afd); if (*argv) { diff --git a/usr.bin/ar/delete.c b/usr.bin/ar/delete.c index 1ef332f..5824b61 100644 --- a/usr.bin/ar/delete.c +++ b/usr.bin/ar/delete.c @@ -93,4 +93,4 @@ delete(argv) return (1); } return (0); -} +} diff --git a/usr.bin/ar/extract.c b/usr.bin/ar/extract.c index 2cc1ea0..c80e37c 100644 --- a/usr.bin/ar/extract.c +++ b/usr.bin/ar/extract.c @@ -125,4 +125,4 @@ extract(argv) return (1); } return (0); -} +} diff --git a/usr.bin/ar/misc.c b/usr.bin/ar/misc.c index 4faaa22..2a2ffb0 100644 --- a/usr.bin/ar/misc.c +++ b/usr.bin/ar/misc.c @@ -73,7 +73,7 @@ tmp() (void)sprintf(path, "%s/%s", envtmp, _NAME_ARTMP); else strcpy(path, _PATH_ARTMP); - + sigfillset(&set); (void)sigprocmask(SIG_BLOCK, &set, &oset); if ((fd = mkstemp(path)) == -1) diff --git a/usr.bin/ar/move.c b/usr.bin/ar/move.c index 1bbdef4..c2dba36 100644 --- a/usr.bin/ar/move.c +++ b/usr.bin/ar/move.c @@ -85,7 +85,7 @@ move(argv) /* Read and write to an archive; pad on both. */ SETCF(afd, archive, 0, tname, RPAD|WPAD); - for (curfd = tfd1; get_arobj(afd);) { + for (curfd = tfd1; get_arobj(afd);) { if (*argv && (file = files(argv))) { if (options & AR_V) (void)printf("m - %s\n", file); @@ -137,4 +137,4 @@ move(argv) return (1); } return (0); -} +} diff --git a/usr.bin/ar/replace.c b/usr.bin/ar/replace.c index 11cdfd0..a226235 100644 --- a/usr.bin/ar/replace.c +++ b/usr.bin/ar/replace.c @@ -55,7 +55,7 @@ static char sccsid[] = "@(#)replace.c 8.3 (Berkeley) 4/2/94"; /* * replace -- * Replace or add named members to archive. Entries already in the - * archive are swapped in place. Others are added before or after + * archive are swapped in place. Others are added before or after * the key entry, based on the a, b and i options. If the u option * is specified, modification dates select for replacement. */ @@ -81,7 +81,7 @@ replace(argv) tfd1 = -1; tfd2 = tmp(); goto append; - } + } tfd1 = tmp(); /* Files before key file. */ tfd2 = tmp(); /* Files after key file. */ @@ -156,7 +156,7 @@ append: while (file = *argv++) { put_arobj(&cf, &sb); (void)close(sfd); } - + (void)lseek(afd, (off_t)SARMAG, SEEK_SET); SETCF(tfd1, tname, afd, archive, NOPAD); @@ -175,4 +175,4 @@ append: while (file = *argv++) { (void)ftruncate(afd, tsize + SARMAG); close_archive(afd); return (errflg); -} +} |