From: Liam J. Foy Date: Fri, 1 Apr 2005 21:35:10 +0000 (+0000) Subject: - warn() -> warnx(). The global variable errno will not be set. X-Git-Tag: v2.0.1~7983 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/b1f7ca9371422e539979a97289c82cdc3b21acb1 - warn() -> warnx(). The global variable errno will not be set. --- diff --git a/bin/mv/mv.c b/bin/mv/mv.c index 84287068f7..6e13e88ca9 100644 --- a/bin/mv/mv.c +++ b/bin/mv/mv.c @@ -32,7 +32,7 @@ * @(#) Copyright (c) 1989, 1993, 1994 The Regents of the University of California. All rights reserved. * @(#)mv.c 8.2 (Berkeley) 4/2/94 * $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/bin/mv/mv.c,v 1.24.2.6 2004/03/24 08:34:36 pjd Exp $ - * $DragonFly: src/bin/mv/mv.c,v 1.9 2004/11/29 21:45:00 liamfoy Exp $ + * $DragonFly: src/bin/mv/mv.c,v 1.10 2005/04/01 21:35:10 liamfoy Exp $ */ #include @@ -341,11 +341,11 @@ copy(const char *from, const 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); } @@ -359,11 +359,11 @@ copy(const char *from, const 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); }