From owner-p4-projects@FreeBSD.ORG Sun Dec 28 16:22:14 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4991F1065677; Sun, 28 Dec 2008 16:22:14 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E14F1065670 for ; Sun, 28 Dec 2008 16:22:14 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id ED3DE8FC27 for ; Sun, 28 Dec 2008 16:22:13 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mBSGMDwg080964 for ; Sun, 28 Dec 2008 16:22:13 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mBSGMDUo080962 for perforce@freebsd.org; Sun, 28 Dec 2008 16:22:13 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sun, 28 Dec 2008 16:22:13 GMT Message-Id: <200812281622.mBSGMDUo080962@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 155386 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2008 16:22:14 -0000 http://perforce.freebsd.org/chv.cgi?CH=155386 Change 155386 by rwatson@rwatson_cinnamon on 2008/12/28 16:21:33 Change internal structure names in bsm_errno.c to match bsm_domain.c and bsm_socket_type.c. Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#15 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#15 (text+ko) ==== @@ -26,7 +26,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#14 $ + * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_errno.c#15 $ */ #include @@ -47,7 +47,7 @@ * stored in a single 8-bit character, so don't have a byte order. */ -struct bsm_errnos { +struct bsm_errno { int be_bsm_errno; int be_local_errno; const char *be_strerror; @@ -70,7 +70,7 @@ * support catalogues; these are only used if the OS doesn't have an error * string using strerror(3). */ -static const struct bsm_errnos bsm_errnos[] = { +static const struct bsm_errno bsm_errnos[] = { { BSM_ERRNO_ESUCCESS, 0, "Success" }, { BSM_ERRNO_EPERM, EPERM, "Operation not permitted" }, { BSM_ERRNO_ENOENT, ENOENT, "No such file or directory" }, @@ -565,7 +565,7 @@ }; static const int bsm_errnos_count = sizeof(bsm_errnos) / sizeof(bsm_errnos[0]); -static const struct bsm_errnos * +static const struct bsm_errno * bsm_lookup_errno_local(int local_errno) { int i; @@ -584,7 +584,7 @@ u_char au_errno_to_bsm(int local_errno) { - const struct bsm_errnos *bsme; + const struct bsm_errno *bsme; bsme = bsm_lookup_errno_local(local_errno); if (bsme == NULL) @@ -592,7 +592,7 @@ return (bsme->be_bsm_errno); } -static const struct bsm_errnos * +static const struct bsm_errno * bsm_lookup_errno_bsm(u_char bsm_errno) { int i; @@ -612,7 +612,7 @@ int au_bsm_to_errno(u_char bsm_errno, int *errorp) { - const struct bsm_errnos *bsme; + const struct bsm_errno *bsme; bsme = bsm_lookup_errno_bsm(bsm_errno); if (bsme == NULL || bsme->be_local_errno == ERRNO_NO_LOCAL_MAPPING) @@ -625,7 +625,7 @@ const char * au_strerror(u_char bsm_errno) { - const struct bsm_errnos *bsme; + const struct bsm_errno *bsme; bsme = bsm_lookup_errno_bsm(bsm_errno); if (bsme == NULL)