summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/res_query.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-01 07:02:00 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-01 07:02:00 +0000
commit029c374c9c2617627b90b7585b6722113cd760a4 (patch)
tree64e4e41c2c61990e65e413e912b324a6eda3ea58 /cpukit/libnetworking/libc/res_query.c
parent2008-09-01 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-029c374c9c2617627b90b7585b6722113cd760a4.tar.bz2
Stop using old-style function definitions.
Diffstat (limited to '')
-rw-r--r--cpukit/libnetworking/libc/res_query.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/cpukit/libnetworking/libc/res_query.c b/cpukit/libnetworking/libc/res_query.c
index 8923248351..f53327511b 100644
--- a/cpukit/libnetworking/libc/res_query.c
+++ b/cpukit/libnetworking/libc/res_query.c
@@ -104,11 +104,11 @@
* Caller must parse answer and determine whether it answers the question.
*/
int
-res_query(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 buffer */
+res_query(
+ const char *name, /* domain name */
+ int class, int type, /* class and type of query */
+ u_char *answer, /* buffer to put answer */
+ int anslen) /* size of answer buffer */
{
u_char buf[MAXPACKET];
HEADER *hp = (HEADER *) answer;
@@ -180,11 +180,11 @@ res_query(name, class, type, answer, anslen)
* is detected. Error code, if any, is left in h_errno.
*/
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 */
+res_search(
+ const char *name, /* domain name */
+ int class, int type, /* class and type of query */
+ u_char *answer, /* buffer to put answer */
+ int anslen) /* size of answer */
{
const char *cp, * const *domain;
HEADER *hp = (HEADER *) answer;
@@ -318,11 +318,11 @@ res_search(name, class, type, answer, anslen)
* 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 */
+res_querydomain(
+ const char *name, const char *domain,
+ int class, int type, /* class and type of query */
+ u_char *answer, /* buffer to put answer */
+ int anslen) /* size of answer */
{
char nbuf[MAXDNAME];
const char *longname = nbuf;
@@ -366,8 +366,7 @@ res_querydomain(name, domain, class, type, answer, anslen)
}
const char *
-hostalias(name)
- const char *name;
+hostalias(const char *name)
{
register char *cp1, *cp2;
FILE *fp;