summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-20 08:47:51 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-20 08:47:51 +0000
commit11975abb2c891e563dbed51a52c050ea0b05b8a4 (patch)
treed99ca21591a2528ac4546b64c8f703b0fc6dac34 /libc/inet
parent6a9087f96b69f1b8cea5cee76a27784d2b131cd2 (diff)
- remove old-style definitions. No object-code changes.
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/resolv.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index 7b19ce3a5..a6bee2589 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -1054,7 +1054,7 @@ __UCLIBC_MUTEX_INIT(__resolv_lock, PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP);
* unix systems, we can have a list of nameservers after the keyword.
*/
-void attribute_hidden __open_nameservers()
+void attribute_hidden __open_nameservers(void)
{
FILE *fp;
int i;
@@ -1303,11 +1303,8 @@ libc_hidden_def(res_query)
#define __GOT_NODATA (1<<1)
#define __GOT_SERVFAIL (1<<2)
#define __TRIED_AS_IS (1<<3)
-int res_search(name, class, type, answer, anslen)
- const char *name; /* domain name */
- int class, type; /* class and type of query */
- u_char *answer; /* buffer to put answer */
- int anslen; /* size of answer */
+int res_search(const char *name, int class, int type, u_char *answer,
+ int anslen)
{
const char *cp, * const *domain;
HEADER *hp = (HEADER *)(void *)answer;
@@ -1457,11 +1454,8 @@ int res_search(name, class, type, answer, anslen)
* Perform a call on res_query on the concatenation of name and domain,
* removing a trailing dot from name if domain is NULL.
*/
-int res_querydomain(name, domain, class, type, answer, anslen)
- const char *name, *domain;
- int class, type; /* class and type of query */
- u_char *answer; /* buffer to put answer */
- int anslen; /* size of answer */
+int res_querydomain(const char *name, const char *domain, int class, int type,
+ u_char * answer, int anslen)
{
char nbuf[MAXDNAME];
const char *longname = nbuf;