diff options
Diffstat (limited to 'cpukit/libnetworking/libc/res_send.c')
-rw-r--r-- | cpukit/libnetworking/libc/res_send.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/cpukit/libnetworking/libc/res_send.c b/cpukit/libnetworking/libc/res_send.c index 5f675a46e4..3d8f823efc 100644 --- a/cpukit/libnetworking/libc/res_send.c +++ b/cpukit/libnetworking/libc/res_send.c @@ -133,11 +133,11 @@ static res_send_rhook Rhook = NULL; __fp_nquery(query, size, stdout);\ } else {} static void - Aerror(file, string, error, address) - FILE *file; - char *string; - int error; - struct sockaddr_in address; + Aerror( + FILE *file, + char *string, + int error, + struct sockaddr_in address) { int save = errno; @@ -151,10 +151,10 @@ static res_send_rhook Rhook = NULL; errno = save; } static void - Perror(file, string, error) - FILE *file; - char *string; - int error; + Perror( + FILE *file, + char *string, + int error) { int save = errno; @@ -167,16 +167,16 @@ static res_send_rhook Rhook = NULL; #endif void -res_send_setqhook(hook) - res_send_qhook hook; +res_send_setqhook( + res_send_qhook hook) { Qhook = hook; } void -res_send_setrhook(hook) - res_send_rhook hook; +res_send_setrhook( + res_send_rhook hook) { Rhook = hook; @@ -192,8 +192,8 @@ res_send_setrhook(hook) * paul vixie, 29may94 */ int -res_isourserver(inp) - const struct sockaddr_in *inp; +res_isourserver( + const struct sockaddr_in *inp) { struct sockaddr_in ina; int ns, ret; @@ -227,10 +227,10 @@ res_isourserver(inp) * paul vixie, 29may94 */ int -res_nameinquery(name, type, class, buf, eom) - const char *name; - int type, class; - const u_char *buf, *eom; +res_nameinquery( + const char *name, + int type, int class, + const u_char *buf, const u_char *eom) { const u_char *cp = buf + HFIXEDSZ; int qdcount = ntohs(((HEADER*)buf)->qdcount); @@ -267,9 +267,9 @@ res_nameinquery(name, type, class, buf, eom) * paul vixie, 29may94 */ int -res_queriesmatch(buf1, eom1, buf2, eom2) - const u_char *buf1, *eom1; - const u_char *buf2, *eom2; +res_queriesmatch( + const u_char *buf1, const u_char *eom1, + const u_char *buf2, const u_char *eom2) { const u_char *cp = buf1 + HFIXEDSZ; int qdcount = ntohs(((HEADER*)buf1)->qdcount); @@ -306,11 +306,11 @@ res_queriesmatch(buf1, eom1, buf2, eom2) } int -res_send(buf, buflen, ans, anssiz) - const u_char *buf; - int buflen; - u_char *ans; - int anssiz; +res_send( + const u_char *buf, + int buflen, + u_char *ans, + int anssiz) { HEADER *hp = (HEADER *) buf; HEADER *anhp = (HEADER *) ans; @@ -922,7 +922,7 @@ read_len: * This routine is not expected to be user visible. */ void -res_close() +res_close(void) { if (s >= 0) { (void) close(s); |