diff options
author | Piotr Pawel Stefaniak <pstef@FreeBSD.org> | 2020-06-20 06:10:42 +0000 |
---|---|---|
committer | Piotr Pawel Stefaniak <pstef@FreeBSD.org> | 2020-06-20 06:10:42 +0000 |
commit | 39c64ed6d16d07b32f79513c08e81ad916e22bd9 (patch) | |
tree | 0341ca408b5eff41f2ed7e085bdd8ee792ad9795 /lib/libutil | |
parent | 0447cda0cbf00916287a25debf3f8ecb058d97a1 (diff) | |
download | src-39c64ed6d16d07b32f79513c08e81ad916e22bd9.tar.gz src-39c64ed6d16d07b32f79513c08e81ad916e22bd9.zip |
libutil: remove extraneous ": " from error messages
Each of the err() family of functions already takes care of that.
Notes
Notes:
svn path=/head/; revision=362429
Diffstat (limited to 'lib/libutil')
-rw-r--r-- | lib/libutil/gr_util.c | 4 | ||||
-rw-r--r-- | lib/libutil/pw_util.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libutil/gr_util.c b/lib/libutil/gr_util.c index 796cbf021ded..bab4143be731 100644 --- a/lib/libutil/gr_util.c +++ b/lib/libutil/gr_util.c @@ -108,11 +108,11 @@ gr_lock(void) if (errno == EWOULDBLOCK) { errx(1, "the group file is busy"); } else { - err(1, "could not lock the group file: "); + err(1, "could not lock the group file"); } } if (fstat(lockfd, &st) == -1) - err(1, "fstat() failed: "); + err(1, "fstat() failed"); if (st.st_nlink != 0) break; close(lockfd); diff --git a/lib/libutil/pw_util.c b/lib/libutil/pw_util.c index 1659c97a7fcd..94db72029062 100644 --- a/lib/libutil/pw_util.c +++ b/lib/libutil/pw_util.c @@ -181,7 +181,7 @@ pw_lock(void) if (errno == EWOULDBLOCK) { errx(1, "the password db file is busy"); } else { - err(1, "could not lock the passwd file: "); + err(1, "could not lock the passwd file"); } } @@ -191,7 +191,7 @@ pw_lock(void) * close and retry. */ if (fstat(lockfd, &st) == -1) - err(1, "fstat() failed: "); + err(1, "fstat() failed"); if (st.st_nlink != 0) break; close(lockfd); |