From 208f2fd1ed5a88a11413c49834d2c37c289f9c7e Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Thu, 15 Jul 2004 04:51:21 +0000 Subject: [PATCH] Use warn() instead of perror(). --- usr.bin/lockf/lockf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/lockf/lockf.c b/usr.bin/lockf/lockf.c index 257af52b3620..6995d0abfba4 100644 --- a/usr.bin/lockf/lockf.c +++ b/usr.bin/lockf/lockf.c @@ -132,7 +132,7 @@ main(int argc, char **argv) if (child == 0) { /* The child process. */ close(lockfd); execvp(argv[0], argv); - perror(argv[0]); + warn("%s", argv[0]); _exit(1); }