diff options
author | csjp <csjp@FreeBSD.org> | 2005-05-24 23:42:09 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2005-05-24 23:42:09 +0000 |
commit | 377408df64bed75ebf4b5b2418bb213e809b7ea8 (patch) | |
tree | 7aa22d099a922dcae6ecfeed18bc15f0a092d652 /usr.bin/ipcs | |
parent | f539b2792ae60faf6da4e7a9da0af546ce4b7ba9 (diff) | |
download | FreeBSD-src-377408df64bed75ebf4b5b2418bb213e809b7ea8.zip FreeBSD-src-377408df64bed75ebf4b5b2418bb213e809b7ea8.tar.gz |
If sysctlbyname fails for kernel related reasons, tag the errno
string to the end of the error message. I think we used errx()
there when we really wanted an err().
MFC after: 1 week
Diffstat (limited to 'usr.bin/ipcs')
-rw-r--r-- | usr.bin/ipcs/ipcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c index cbd010f..5a1dbb0 100644 --- a/usr.bin/ipcs/ipcs.c +++ b/usr.bin/ipcs/ipcs.c @@ -568,7 +568,7 @@ sysctlgatherstruct(void *addr, size_t size, struct scgs_vector *vecarr) rv = sysctlbyname(xp->sysctl, (char *)addr + xp->offset, &tsiz, NULL, 0); if (rv == -1) - errx(1, "sysctlbyname: %s", xp->sysctl); + err(1, "sysctlbyname: %s", xp->sysctl); if (tsiz != xp->size) errx(1, "%s size mismatch (expected %d, got %d)", xp->sysctl, xp->size, tsiz); |