mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
ypxfr(8): Use the correct enum member for checking yp_errno.
Found-by: gcc47 Submitted by: Sascha Wildner <swildner@dragonflybsd.org> Obtained from: DragonFlyBSD (commit d0b3a17c3c6)
This commit is contained in:
parent
6138e089bc
commit
89482baab7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283844
@ -357,7 +357,7 @@ the local domain name isn't set");
|
||||
ypxfr_mapname,
|
||||
ypxfr_master, 0)) == 0) {
|
||||
yp_error("failed to get order number of %s: %s",
|
||||
ypxfr_mapname, yp_errno == YPXFR_SUCC ?
|
||||
ypxfr_mapname, yp_errno == YP_TRUE ?
|
||||
"map has order 0" :
|
||||
ypxfrerr_string((ypxfrstat)yp_errno));
|
||||
ypxfr_exit(YPXFR_YPERR,NULL);
|
||||
@ -533,7 +533,7 @@ leave:
|
||||
ypxfr_mapname,
|
||||
ypxfr_master, 0)) == 0) {
|
||||
yp_error("failed to get order number of %s: %s",
|
||||
ypxfr_mapname, yp_errno == YPXFR_SUCC ?
|
||||
ypxfr_mapname, yp_errno == YP_TRUE ?
|
||||
"map has order 0" :
|
||||
ypxfrerr_string((ypxfrstat)yp_errno));
|
||||
ypxfr_exit(YPXFR_YPERR,ypxfr_temp_map);
|
||||
|
Loading…
Reference in New Issue
Block a user