From owner-p4-projects@FreeBSD.ORG Tue Aug 15 02:27:44 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 3147A16A4DE; Tue, 15 Aug 2006 02:27:44 +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 0D95216A4DA for ; Tue, 15 Aug 2006 02:27:44 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7B7A43D46 for ; Tue, 15 Aug 2006 02:27:43 +0000 (GMT) (envelope-from jb@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 k7F2RhNT083770 for ; Tue, 15 Aug 2006 02:27:43 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7F2RhIX083767 for perforce@freebsd.org; Tue, 15 Aug 2006 02:27:43 GMT (envelope-from jb@freebsd.org) Date: Tue, 15 Aug 2006 02:27:43 GMT Message-Id: <200608150227.k7F2RhIX083767@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 103950 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: Tue, 15 Aug 2006 02:27:44 -0000 http://perforce.freebsd.org/chv.cgi?CH=103950 Change 103950 by jb@jb_freebsd2 on 2006/08/15 02:26:59 Fix compiler warnings. Affected files ... .. //depot/projects/dtrace/src/sys/contrib/opensolaris/common/ctf/ctf_types.c#2 edit Differences ... ==== //depot/projects/dtrace/src/sys/contrib/opensolaris/common/ctf/ctf_types.c#2 (text) ==== @@ -309,7 +309,7 @@ ctf_type_name(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len) { ssize_t rv = ctf_type_lname(fp, type, buf, len); - return (rv >= 0 && rv < len ? buf : NULL); + return (rv >= 0 && rv < (ssize_t) len ? buf : NULL); } /* @@ -368,7 +368,7 @@ ssize_t ctf_type_align(ctf_file_t *fp, ctf_id_t type) { - const ctf_type_t *tp; + ctf_type_t *tp; ctf_arinfo_t r; if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) @@ -391,7 +391,7 @@ case CTF_K_UNION: { uint_t n = LCTF_INFO_VLEN(fp, tp->ctt_info); ssize_t size, increment; - size_t align = 0; + ssize_t align = 0; const void *vmp; (void) ctf_get_ctt_size(fp, tp, &size, &increment);