Date: Mon, 21 Feb 2005 08:35:10 GMT From: "Kevin M. Kilbride" <kmk@ssl.org> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/77835: libc file res_debug.c needs const declarators in precsize_aton() Message-ID: <200502210835.j1L8ZAML018411@www.freebsd.org> Resent-Message-ID: <200502210840.j1L8e6CM017435@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502210835.j1L8ZAML018411>