From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 21 08:40:07 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B78416A4CE for ; Mon, 21 Feb 2005 08:40:07 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB47B43D49 for ; Mon, 21 Feb 2005 08:40:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1L8e6dD017436 for ; Mon, 21 Feb 2005 08:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1L8e6CM017435; Mon, 21 Feb 2005 08:40:06 GMT (envelope-from gnats) Resent-Date: Mon, 21 Feb 2005 08:40:06 GMT Resent-Message-Id: <200502210840.j1L8e6CM017435@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Kevin M. Kilbride" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A7E116A4CE for ; Mon, 21 Feb 2005 08:35:11 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60EBB43D31 for ; Mon, 21 Feb 2005 08:35:11 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j1L8ZBjB018413 for ; Mon, 21 Feb 2005 08:35:11 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j1L8ZAML018411; Mon, 21 Feb 2005 08:35:10 GMT (envelope-from nobody) Message-Id: <200502210835.j1L8ZAML018411@www.freebsd.org> Date: Mon, 21 Feb 2005 08:35:10 GMT From: "Kevin M. Kilbride" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/77835: libc file res_debug.c needs const declarators in precsize_aton() X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2005 08:40:07 -0000 >Number: 77835 >Category: misc >Synopsis: libc file res_debug.c needs const declarators in precsize_aton() >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 21 08:40:06 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Kevin M. Kilbride >Release: 5.3-STABLE >Organization: Sapient Systems Laboratories >Environment: FreeBSD devel.localnet 5.3-STABLE FreeBSD 5.3-STABLE #0: Sun Feb 20 21:44:50 PST 2005 chandra@devel.localnet:/usr/src/sys/i386/compile/DEVIL i386 >Description: Calling precsize_aton() discards const qualifier of parameter in calls throughout file /usr/src/lib/libc/net/res_debug.c Formal parameter of precsize_aton() should be declared const. >How-To-Repeat: >Fix: --- lib/libc/net/res_debug.c.orig Mon Feb 21 00:07:42 2005 +++ lib/libc/net/res_debug.c Mon Feb 21 00:24:00 2005 @@ -572,11 +572,11 @@ /* converts ascii size/precision X * 10**Y(cm) to 0xXY. moves pointer. */ static u_int8_t precsize_aton(strptr) - char **strptr; + const char **strptr; { unsigned int mval = 0, cmval = 0; u_int8_t retval = 0; - char *cp; + const char *cp; int exponent; int mantissa; >Release-Note: >Audit-Trail: >Unformatted: