* resolv/res_debug.c (latlon2ul): Add const to argument type, and use

it internally.
	(precsize_aton): Likewise.
This commit is contained in:
Roland McGrath 2002-08-08 02:01:41 +00:00
parent 78323b5b80
commit 0a463fa9da
2 changed files with 21 additions and 17 deletions

View File

@ -1,5 +1,9 @@
2002-08-07 Roland McGrath <roland@redhat.com>
* resolv/res_debug.c (latlon2ul): Add const to argument type, and use
it internally.
(precsize_aton): Likewise.
* inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
the static symbols added in the last change (doofus is me).

View File

@ -628,11 +628,11 @@ precsize_ntoa(prec)
/* 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;
@ -670,10 +670,10 @@ precsize_aton(strptr)
/* converts ascii lat/lon to unsigned encoded 32-bit number. moves pointer. */
static u_int32_t
latlon2ul(latlonstrptr,which)
char **latlonstrptr;
const char **latlonstrptr;
int *which;
{
char *cp;
const char *cp;
u_int32_t retval;
int deg = 0, min = 0, secs = 0, secsfrac = 0;