mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
* resolv/res_debug.c (latlon2ul): Add const to argument type, and use
it internally. (precsize_aton): Likewise.
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
2002-08-07 Roland McGrath <roland@redhat.com>
|
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
|
* inet/getnetgrent_r.c (endnetgrent, __getnetgrent_r): Actually call
|
||||||
the static symbols added in the last change (doofus is me).
|
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. */
|
/* converts ascii size/precision X * 10**Y(cm) to 0xXY. moves pointer. */
|
||||||
static u_int8_t
|
static u_int8_t
|
||||||
precsize_aton(strptr)
|
precsize_aton(strptr)
|
||||||
char **strptr;
|
const char **strptr;
|
||||||
{
|
{
|
||||||
unsigned int mval = 0, cmval = 0;
|
unsigned int mval = 0, cmval = 0;
|
||||||
u_int8_t retval = 0;
|
u_int8_t retval = 0;
|
||||||
char *cp;
|
const char *cp;
|
||||||
int exponent;
|
int exponent;
|
||||||
int mantissa;
|
int mantissa;
|
||||||
|
|
||||||
@@ -670,10 +670,10 @@ precsize_aton(strptr)
|
|||||||
/* converts ascii lat/lon to unsigned encoded 32-bit number. moves pointer. */
|
/* converts ascii lat/lon to unsigned encoded 32-bit number. moves pointer. */
|
||||||
static u_int32_t
|
static u_int32_t
|
||||||
latlon2ul(latlonstrptr,which)
|
latlon2ul(latlonstrptr,which)
|
||||||
char **latlonstrptr;
|
const char **latlonstrptr;
|
||||||
int *which;
|
int *which;
|
||||||
{
|
{
|
||||||
char *cp;
|
const char *cp;
|
||||||
u_int32_t retval;
|
u_int32_t retval;
|
||||||
int deg = 0, min = 0, secs = 0, secsfrac = 0;
|
int deg = 0, min = 0, secs = 0, secsfrac = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user