From owner-p4-projects@FreeBSD.ORG Tue Aug 15 02:42:07 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 7279116A4DF; Tue, 15 Aug 2006 02:42:07 +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 516E616A4DE for ; Tue, 15 Aug 2006 02:42:07 +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 1D92F43D49 for ; Tue, 15 Aug 2006 02:42:07 +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 k7F2g6LK084912 for ; Tue, 15 Aug 2006 02:42:06 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k7F2g63W084909 for perforce@freebsd.org; Tue, 15 Aug 2006 02:42:06 GMT (envelope-from jb@freebsd.org) Date: Tue, 15 Aug 2006 02:42:06 GMT Message-Id: <200608150242.k7F2g63W084909@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 103959 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:42:07 -0000 http://perforce.freebsd.org/chv.cgi?CH=103959 Change 103959 by jb@jb_freebsd2 on 2006/08/15 02:41:56 More compiler warning avoidance. Affected files ... .. //depot/projects/dtrace/src/sys/contrib/opensolaris/common/ctf/ctf_create.c#4 edit Differences ... ==== //depot/projects/dtrace/src/sys/contrib/opensolaris/common/ctf/ctf_create.c#4 (text) ==== @@ -54,7 +54,7 @@ ctf_file_t * ctf_create(int *errp) { - static const ctf_header_t hdr = { { CTF_MAGIC, CTF_VERSION, 0 } }; + static ctf_header_t hdr = { { CTF_MAGIC, CTF_VERSION, 0 }, 0, 0, 0, 0, 0, 0, 0, 0 }; const ulong_t hashlen = 128; ctf_dtdef_t **hash = ctf_alloc(hashlen * sizeof (ctf_dtdef_t *)); @@ -504,7 +504,7 @@ int ctf_discard(ctf_file_t *fp) { - ctf_dtdef_t *dtd, *ntd; + ctf_dtdef_t *dtd, *ntd = NULL; if (!(fp->ctf_flags & LCTF_RDWR)) return (ctf_set_errno(fp, ECTF_RDONLY)); @@ -513,7 +513,7 @@ return (0); /* no update required */ for (dtd = ctf_list_next(&fp->ctf_dtdefs); dtd != NULL; dtd = ntd) { - if (dtd->dtd_type <= fp->ctf_dtoldid) + if ((ulong_t) dtd->dtd_type <= fp->ctf_dtoldid) continue; /* skip types that have been committed */ ntd = ctf_list_next(dtd); @@ -1037,7 +1037,7 @@ /*ARGSUSED*/ static int -membcmp(const char *name, ctf_id_t type, ulong_t offset, void *arg) +membcmp(const char *name, __unused ctf_id_t type, ulong_t offset, void *arg) { ctf_bundle_t *ctb = arg; ctf_membinfo_t ctm; @@ -1164,9 +1164,9 @@ */ if (dst_type == CTF_ERR && name[0] != '\0') { for (dtd = ctf_list_prev(&dst_fp->ctf_dtdefs); dtd != NULL && - dtd->dtd_type > dst_fp->ctf_dtoldid; + (ulong_t) dtd->dtd_type > dst_fp->ctf_dtoldid; dtd = ctf_list_prev(dtd)) { - if (CTF_INFO_KIND(dtd->dtd_data.ctt_info) == kind && + if ((uint_t) CTF_INFO_KIND(dtd->dtd_data.ctt_info) == kind && dtd->dtd_name != NULL && strcmp(dtd->dtd_name, name) == 0) return (dtd->dtd_type);