diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2015-05-31 22:20:36 +0000 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2015-05-31 22:20:36 +0000 |
commit | 89482baab71634b3c0bdbae6805b3cbaaab71580 (patch) | |
tree | 15c5ecc03cd7377d9dfe4cfc3f776644397b2c94 /libexec/ypxfr | |
parent | 6138e089bc8f71f20f527a82abe48fc5c93999f4 (diff) | |
download | src-test2-89482baab71634b3c0bdbae6805b3cbaaab71580.tar.gz src-test2-89482baab71634b3c0bdbae6805b3cbaaab71580.zip |
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)
Notes
Notes:
svn path=/head/; revision=283844
Diffstat (limited to 'libexec/ypxfr')
-rw-r--r-- | libexec/ypxfr/ypxfr_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ypxfr/ypxfr_main.c b/libexec/ypxfr/ypxfr_main.c index 70fd1f5f16aa..03a30f6307c8 100644 --- a/libexec/ypxfr/ypxfr_main.c +++ b/libexec/ypxfr/ypxfr_main.c @@ -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); |