summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2001-04-03 23:48:28 +0000
committeriedowse <iedowse@FreeBSD.org>2001-04-03 23:48:28 +0000
commit7f0150c9c9771956131a1c51b83647d8407fc70d (patch)
tree00987f513b011ef69b6321747e9b4ba5de6fcbd8 /usr.bin
parentcc67d8ceca336c033d20ccecace04af22d9e1bc4 (diff)
downloadFreeBSD-src-7f0150c9c9771956131a1c51b83647d8407fc70d.zip
FreeBSD-src-7f0150c9c9771956131a1c51b83647d8407fc70d.tar.gz
Fix some very broken code in __nc_error() that implements per-thread
`nc_error' variables. Move the nc_lock mutex from mt_misc.c to a static variable within this function, since it is only used here. Add a new getnetconfigent() error code `NC_NOTFOUND' to report the case where the specified netid was not found. Set nc_error in all error cases in getnetconfigent() so that the error messages returned by nc_(s)perror are always meaningful. Add a terminating \n to the output of nc_perror() to match both our manpage and other implementations of this function. Reviewed by: deischen, alfred, Martin Blapp <mb@imp.ch>
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud