Date: Sun, 31 May 2015 22:20:36 +0000 (UTC) From: Craig Rodrigues <rodrigc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r283844 - head/libexec/ypxfr Message-ID: <201505312220.t4VMKaaB021096@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rodrigc Date: Sun May 31 22:20:36 2015 New Revision: 283844 URL: https://svnweb.freebsd.org/changeset/base/283844 Log: 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) Modified: head/libexec/ypxfr/ypxfr_main.c Modified: head/libexec/ypxfr/ypxfr_main.c ============================================================================== --- head/libexec/ypxfr/ypxfr_main.c Sun May 31 22:12:31 2015 (r283843) +++ head/libexec/ypxfr/ypxfr_main.c Sun May 31 22:20:36 2015 (r283844) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505312220.t4VMKaaB021096>