mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Fix incorrect format string detected by "-Wformat".
This commit is contained in:
parent
14b94d0464
commit
24032eebaf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31216
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: main.c,v 1.18 1997/09/15 06:37:08 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -422,7 +422,7 @@ moveifchanged(const char *from_name, const char *to_name)
|
||||
err(EX_OSERR, "rename(%s, %s)", from_name, to_name);
|
||||
} else {
|
||||
if (unlink(from_name) < 0)
|
||||
err(EX_OSERR, "unlink(%s, %s)", from_name);
|
||||
err(EX_OSERR, "unlink(%s)", from_name);
|
||||
}
|
||||
|
||||
#ifdef DIAG
|
||||
|
Loading…
Reference in New Issue
Block a user