From owner-p4-projects@FreeBSD.ORG Thu Jul 6 16:17:15 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8FC8216A530; Thu, 6 Jul 2006 16:17:15 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E64916A4DF for ; Thu, 6 Jul 2006 16:17:15 +0000 (UTC) (envelope-from wkoszek@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1949E43D46 for ; Thu, 6 Jul 2006 16:17:15 +0000 (GMT) (envelope-from wkoszek@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k66GHEge097412 for ; Thu, 6 Jul 2006 16:17:14 GMT (envelope-from wkoszek@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k66GHEEm097409 for perforce@freebsd.org; Thu, 6 Jul 2006 16:17:14 GMT (envelope-from wkoszek@FreeBSD.org) Date: Thu, 6 Jul 2006 16:17:14 GMT Message-Id: <200607061617.k66GHEEm097409@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to wkoszek@FreeBSD.org using -f From: "Wojciech A. Koszek" To: Perforce Change Reviews Cc: Subject: PERFORCE change 100770 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: Thu, 06 Jul 2006 16:17:15 -0000 http://perforce.freebsd.org/chv.cgi?CH=100770 Change 100770 by wkoszek@wkoszek_laptop on 2006/07/06 16:17:09 Additional parentheses around bswap* macros to make gcc happy. Affected files ... .. //depot/projects/mips2/src/sys/mips/include/endian.h#3 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/include/endian.h#3 (text+ko) ==== @@ -120,15 +120,18 @@ /* * Define the order of 32-bit words in 64-bit words. */ +/* + * XXXMIPS: Additional parentheses to make gcc more happy. + */ #define _QUAD_HIGHWORD 0 #define _QUAD_LOWWORD 1 #else #define _QUAD_HIGHWORD 1 #define _QUAD_LOWWORD 0 -#define __ntohl(x) (__bswap32(x)) -#define __ntohs(x) (__bswap16(x)) -#define __htonl(x) (__bswap32(x)) -#define __htons(x) (__bswap16(x)) +#define __ntohl(x) (__bswap32((x))) +#define __ntohs(x) (__bswap16((x))) +#define __htonl(x) (__bswap32((x))) +#define __htons(x) (__bswap16((x))) #endif /* _MIPSEB */ #ifdef __cplusplus