From owner-freebsd-bugs Sat Jul 14 12:20:38 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2EFB437B407 for ; Sat, 14 Jul 2001 12:20:29 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f6EJKTB42033; Sat, 14 Jul 2001 12:20:29 -0700 (PDT) (envelope-from gnats) Received: from krusty.e-technik.uni-dortmund.de (krusty.E-Technik.Uni-Dortmund.DE [129.217.163.1]) by hub.freebsd.org (Postfix) with ESMTP id D932C37B403 for ; Sat, 14 Jul 2001 12:11:12 -0700 (PDT) (envelope-from matthias.andree@web.de) Received: from emma1.emma.line.org (krusty.dt.e-technik.uni-dortmund.de [129.217.163.1]) by krusty.e-technik.uni-dortmund.de (Postfix) with ESMTP id B15CDA3827 for ; Sat, 14 Jul 2001 21:11:10 +0200 (CEST) Received: from freebsd.emma.line.org (freebsd.emma.line.org [192.168.0.4]) by emma1.emma.line.org (Postfix) with ESMTP id 2EBFCA2001 for ; Sat, 14 Jul 2001 21:11:10 +0200 (CEST) Received: by freebsd.emma.line.org (Postfix, from userid 500) id 797B72D310; Sat, 14 Jul 2001 21:11:09 +0200 (CEST) Message-Id: <20010714191109.797B72D310@freebsd.emma.line.org> Date: Sat, 14 Jul 2001 21:11:09 +0200 (CEST) From: matthias.andree@web.de Reply-To: matthias.andree@web.de To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: misc/28969: IN6_IS_ADDR_* macros don't cast their arguments to const Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 28969 >Category: misc >Synopsis: IN6_IS_ADDR_* macros don't cast their arguments to const >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 14 12:20:29 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Matthias Andree >Release: FreeBSD 4.3-RELEASE i386 >Organization: >Environment: System: FreeBSD freebsd.emma.line.org 4.3-RELEASE FreeBSD 4.3-RELEASE #5: Tue Jul 10 17:12:16 CEST 2001 root@freebsd.emma.line.org:/usr/src/sys/compile/M2A2 i386 >Description: IN6_IS_ADDR_V4MAPPED does some casts, but omits "const" from the cast, thus, if (IN6_IS_ADDR_V4MAPPED( &((const struct sockaddr_in6 *)sa)->sin6_addr)) { will cause bogus compiler warnings. >How-To-Repeat: >Fix: Fix the IN6_IS_ADDR_* macros to cast to const if they intend to only read. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message