summaryrefslogtreecommitdiffstats
path: root/bin/mv
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2005-05-19 21:33:48 +0000
committermux <mux@FreeBSD.org>2005-05-19 21:33:48 +0000
commit18e53f0af3e543880f920dc7491e63ab85eaac59 (patch)
tree932ca7492908f3371a17f195adf4896d18b3c3ab /bin/mv
parent54f40eb6c35f44b0ea5fe5f95b0ce7dc80a1317d (diff)
downloadFreeBSD-src-18e53f0af3e543880f920dc7491e63ab85eaac59.zip
FreeBSD-src-18e53f0af3e543880f920dc7491e63ab85eaac59.tar.gz
Correct a few places where we called warn() when warnx() should have
been used. Submitted by: "Liam J. Foy" <liamfoy@sepulcrum.org> Obtained from: DragonFlyBSD
Diffstat (limited to 'bin/mv')
-rw-r--r--bin/mv/mv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/mv/mv.c b/bin/mv/mv.c
index 46e5fe7..e400729 100644
--- a/bin/mv/mv.c
+++ b/bin/mv/mv.c
@@ -351,11 +351,11 @@ copy(char *from, char *to)
return (1);
}
if (!WIFEXITED(status)) {
- warn("%s: did not terminate normally", _PATH_CP);
+ warnx("%s: did not terminate normally", _PATH_CP);
return (1);
}
if (WEXITSTATUS(status)) {
- warn("%s: terminated with %d (non-zero) status",
+ warnx("%s: terminated with %d (non-zero) status",
_PATH_CP, WEXITSTATUS(status));
return (1);
}
@@ -369,11 +369,11 @@ copy(char *from, char *to)
return (1);
}
if (!WIFEXITED(status)) {
- warn("%s: did not terminate normally", _PATH_RM);
+ warnx("%s: did not terminate normally", _PATH_RM);
return (1);
}
if (WEXITSTATUS(status)) {
- warn("%s: terminated with %d (non-zero) status",
+ warnx("%s: terminated with %d (non-zero) status",
_PATH_RM, WEXITSTATUS(status));
return (1);
}
OpenPOWER on IntegriCloud