aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-30 22:47:37 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-30 22:47:37 +0000
commitdb0a00d3aaf16e9d832577b5a60ae081874b41a2 (patch)
tree7f5b60e9f47d1e15ce4546028e2e657823777812 /resolv/res_debug.c
parent* sysdeps/sh/sysdep.h: Add cfi instrumentation to asm fragments. (diff)
downloadglibc-db0a00d3aaf16e9d832577b5a60ae081874b41a2.tar.gz
glibc-db0a00d3aaf16e9d832577b5a60ae081874b41a2.tar.bz2
glibc-db0a00d3aaf16e9d832577b5a60ae081874b41a2.zip
* resolv/res_debug.c (latlon2ul): Use ISO C function declaration.
(precsize_aton): Likewise. (precsize_ntoa): Likewise. * resolv/gethnamaddr.c (_gethtbyname): Remove extra prototype. (gethostbyname2): Likewise. (gethostbyaddr): Likewise. (getanswer): Use ISO C function declaration.
Diffstat (limited to 'resolv/res_debug.c')
-rw-r--r--resolv/res_debug.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/resolv/res_debug.c b/resolv/res_debug.c
index 839069de3d..9b308b189a 100644
--- a/resolv/res_debug.c
+++ b/resolv/res_debug.c
@@ -626,8 +626,7 @@ static const unsigned int poweroften[10]=
/* takes an XeY precision/size value, returns a string representation. */
static const char *
-precsize_ntoa(prec)
- u_int8_t prec;
+precsize_ntoa (u_int8_t prec)
{
static char retbuf[sizeof "90000000.00"]; /* XXX nonreentrant */
unsigned long val;
@@ -644,8 +643,7 @@ precsize_ntoa(prec)
/* converts ascii size/precision X * 10**Y(cm) to 0xXY. moves pointer. */
static u_int8_t
-precsize_aton(strptr)
- const char **strptr;
+precsize_aton (const char **strptr)
{
unsigned int mval = 0, cmval = 0;
u_int8_t retval = 0;
@@ -686,9 +684,7 @@ precsize_aton(strptr)
/* converts ascii lat/lon to unsigned encoded 32-bit number. moves pointer. */
static u_int32_t
-latlon2ul(latlonstrptr,which)
- const char **latlonstrptr;
- int *which;
+latlon2ul (const char **latlonstrptr, int *which)
{
const char *cp;
u_int32_t retval;