diff options
author | tjr <tjr@FreeBSD.org> | 2004-07-15 04:51:21 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-07-15 04:51:21 +0000 |
commit | 508b8bed27289f2d5cfce89c40deca1b1ae1e72f (patch) | |
tree | 6193a7305909c1584715ec8ec7f1e72b2a58702b /usr.bin/lockf | |
parent | f478e0fbc2c755eca49e8a2c1818c9be30208584 (diff) | |
download | FreeBSD-src-508b8bed27289f2d5cfce89c40deca1b1ae1e72f.zip FreeBSD-src-508b8bed27289f2d5cfce89c40deca1b1ae1e72f.tar.gz |
Use warn() instead of perror().
Diffstat (limited to 'usr.bin/lockf')
-rw-r--r-- | usr.bin/lockf/lockf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/lockf/lockf.c b/usr.bin/lockf/lockf.c index 257af52..6995d0a 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); } |