From owner-p4-projects@FreeBSD.ORG Sun Jul 1 02:05:14 2007 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 0717316A46C; Sun, 1 Jul 2007 02:05:13 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6260216A41F for ; Sun, 1 Jul 2007 02:05:13 +0000 (UTC) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 3AC6E13C447 for ; Sun, 1 Jul 2007 02:05:13 +0000 (UTC) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l6125Dmx034823 for ; Sun, 1 Jul 2007 02:05:13 GMT (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l6125C80034820 for perforce@freebsd.org; Sun, 1 Jul 2007 02:05:12 GMT (envelope-from peter@freebsd.org) Date: Sun, 1 Jul 2007 02:05:12 GMT Message-Id: <200707010205.l6125C80034820@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm To: Perforce Change Reviews Cc: Subject: PERFORCE change 122601 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, 01 Jul 2007 02:05:14 -0000 http://perforce.freebsd.org/chv.cgi?CH=122601 Change 122601 by peter@peter_melody on 2007/07/01 02:05:07 Fix compile error. Don't cast pointers to 'int'. Affected files ... .. //depot/projects/hammer/sys/ufs/ufs/dir.h#4 edit Differences ... ==== //depot/projects/hammer/sys/ufs/ufs/dir.h#4 (text+ko) ==== @@ -110,7 +110,7 @@ * */ #define DIRECTSIZ(namlen) \ - (((int)&((struct direct *)0)->d_name + \ + (((uintptr_t)&((struct direct *)0)->d_name + \ ((namlen)+1)*sizeof(((struct direct *)0)->d_name[0]) + 3) & ~3) #if (BYTE_ORDER == LITTLE_ENDIAN) #define DIRSIZ(oldfmt, dp) \