misc/77835: libc file res_debug.c needs const declarators in
precsize_aton()
Kevin M. Kilbride
kmk at ssl.org
Mon Feb 21 08:40:07 GMT 2005
>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 at 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:
More information about the freebsd-bugs
mailing list