aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMaxim Konovalov <maxim@FreeBSD.org>2006-10-07 12:14:50 +0000
committerMaxim Konovalov <maxim@FreeBSD.org>2006-10-07 12:14:50 +0000
commit9bdb7f2e548e67a78899c17f2d19c2cbd9c2190c (patch)
treefc3c80123886ef14ecafdedd2510a9a7596da3ad /bin
parenteb82e1a1f84bc195501db410174e1ec84b8e2307 (diff)
downloadsrc-9bdb7f2e548e67a78899c17f2d19c2cbd9c2190c.tar.gz
src-9bdb7f2e548e67a78899c17f2d19c2cbd9c2190c.zip
o Style(9).
Submitted by: bde
Notes
Notes: svn path=/head/; revision=163075
Diffstat (limited to 'bin')
-rw-r--r--bin/cp/utils.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/bin/cp/utils.c b/bin/cp/utils.c
index 5286c74af037..7eea8fa0b83f 100644
--- a/bin/cp/utils.c
+++ b/bin/cp/utils.c
@@ -62,10 +62,10 @@ copy_file(const FTSENT *entp, int dne)
{
static char buf[MAXBSIZE];
struct stat *fs;
- int ch, checkch, from_fd = 0, rcount, rval, to_fd = 0;
ssize_t wcount;
size_t wresid;
off_t wtotal;
+ int ch, checkch, from_fd = 0, rcount, rval, to_fd = 0;
char *bufp;
#ifdef VM_AND_BUFFER_CACHE_SYNCHRONIZED
char *p;
@@ -156,10 +156,9 @@ copy_file(const FTSENT *entp, int dne)
if (info) {
info = 0;
(void)fprintf(stderr,
- "%s -> %s %3d%%\n",
- entp->fts_path, to.p_path,
- cp_pct(wtotal, fs->st_size));
-
+ "%s -> %s %3d%%\n",
+ entp->fts_path, to.p_path,
+ cp_pct(wtotal, fs->st_size));
}
if (wcount >= (ssize_t)wresid)
break;
@@ -188,10 +187,9 @@ copy_file(const FTSENT *entp, int dne)
if (info) {
info = 0;
(void)fprintf(stderr,
- "%s -> %s %3d%%\n",
- entp->fts_path, to.p_path,
- cp_pct(wtotal, fs->st_size));
-
+ "%s -> %s %3d%%\n",
+ entp->fts_path, to.p_path,
+ cp_pct(wtotal, fs->st_size));
}
if (wcount >= (ssize_t)wresid)
break;