mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
* resolv/res_debug.c (latlon2ul): Add const to argument type, and use
it internally. (precsize_aton): Likewise.
This commit is contained in:
parent
78323b5b80
commit
0a463fa9da
@ -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).
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user