aboutsummaryrefslogtreecommitdiff
path: root/bin/mv
diff options
context:
space:
mode:
authorMaxime Henrion <mux@FreeBSD.org>2005-05-19 21:33:48 +0000
committerMaxime Henrion <mux@FreeBSD.org>2005-05-19 21:33:48 +0000
commit8835fa27595bd3d0a8030962b29cf44b24a9d6b2 (patch)
tree932ca7492908f3371a17f195adf4896d18b3c3ab /bin/mv
parent003daaea5f816e2c747ad2f841c630cf6ff2cb25 (diff)
downloadsrc-8835fa27595bd3d0a8030962b29cf44b24a9d6b2.tar.gz
src-8835fa27595bd3d0a8030962b29cf44b24a9d6b2.zip
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
Notes
Notes: svn path=/head/; revision=146418
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 46e5fe7ab59b..e400729a785e 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);
}