From nobody@FreeBSD.org  Mon Feb 21 08:35:11 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7A7E116A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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" <kmk@ssl.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: libc file res_debug.c needs const declarators in precsize_aton()
X-Send-Pr-Version: www-2.3

>Number:         77835
>Category:       kern
>Synopsis:       [libc] [patch] res_debug.c needs const declarators in precsize_aton()
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    stefanf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 21 08:40:06 GMT 2005
>Closed-Date:    Sat Jun 03 15:53:38 GMT 2006
>Last-Modified:  Sat Jun 03 15:53:38 GMT 2006
>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:
Responsible-Changed-From-To: freebsd-bugs->stefanf 
Responsible-Changed-By: stefanf 
Responsible-Changed-When: Thu Sep 8 20:57:37 GMT 2005 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77835 
State-Changed-From-To: open->closed 
State-Changed-By: stefanf 
State-Changed-When: Sat Jun 3 15:50:24 UTC 2006 
State-Changed-Why:  
Close this PR as the troublesome code was removed in the recent resolver code 
update in March. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=77835 
>Unformatted:
