From 8835fa27595bd3d0a8030962b29cf44b24a9d6b2 Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Thu, 19 May 2005 21:33:48 +0000 Subject: [PATCH] Correct a few places where we called warn() when warnx() should have been used. Submitted by: "Liam J. Foy" Obtained from: DragonFlyBSD --- bin/mv/mv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/mv/mv.c b/bin/mv/mv.c index 46e5fe7ab59..e400729a785 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); }