| OLD | NEW |
| 1 #include <resolv.h> | 1 #include <resolv.h> |
| 2 #include <netdb.h> | 2 #include <netdb.h> |
| 3 #include "libc.h" | 3 #include "libc.h" |
| 4 | 4 |
| 5 int __res_mkquery(int, const char *, int, int, const unsigned char *, int, const
unsigned char*, unsigned char *, int); | 5 int __res_mkquery(int, |
| 6 int __res_send(const unsigned char *, int, unsigned char *, int); | 6 const char*, |
| 7 int, |
| 8 int, |
| 9 const unsigned char*, |
| 10 int, |
| 11 const unsigned char*, |
| 12 unsigned char*, |
| 13 int); |
| 14 int __res_send(const unsigned char*, int, unsigned char*, int); |
| 7 | 15 |
| 8 int __res_query(const char *name, int class, int type, unsigned char *dest, int
len) | 16 int __res_query(const char* name, |
| 9 { | 17 int class, |
| 10 » unsigned char q[280]; | 18 int type, |
| 11 » int ql = __res_mkquery(0, name, class, type, 0, 0, 0, q, sizeof q); | 19 unsigned char* dest, |
| 12 » if (ql < 0) return ql; | 20 int len) { |
| 13 » return __res_send(q, ql, dest, len); | 21 unsigned char q[280]; |
| 22 int ql = __res_mkquery(0, name, class, type, 0, 0, 0, q, sizeof q); |
| 23 if (ql < 0) |
| 24 return ql; |
| 25 return __res_send(q, ql, dest, len); |
| 14 } | 26 } |
| 15 | 27 |
| 16 weak_alias(__res_query, res_query); | 28 weak_alias(__res_query, res_query); |
| 17 weak_alias(__res_query, res_search); | 29 weak_alias(__res_query, res_search); |
| OLD | NEW |