aboutsummaryrefslogtreecommitdiff
path: root/libc/dns/net/getservent.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/dns/net/getservent.c')
-rw-r--r--libc/dns/net/getservent.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libc/dns/net/getservent.c b/libc/dns/net/getservent.c
index 6a50d23ce..03add59eb 100644
--- a/libc/dns/net/getservent.c
+++ b/libc/dns/net/getservent.c
@@ -35,7 +35,7 @@
#include "resolv_static.h"
#include "services.h"
-struct servent* getservent_r(struct res_static* rs) {
+struct servent* getservent_r(res_static rs) {
const char* p;
const char* q;
int namelen;
@@ -109,17 +109,17 @@ void setservent(int stayopen) {
}
void endservent(void) {
- struct res_static* rs = __res_get_static();
+ res_static rs = __res_get_static();
if (rs) rs->servent_ptr = NULL;
}
struct servent* getservent(void) {
- struct res_static* rs = __res_get_static();
+ res_static rs = __res_get_static();
return rs ? getservent_r(rs) : NULL;
}
struct servent* getservbyname(const char* name, const char* proto) {
- struct res_static* rs = __res_get_static();
+ res_static rs = __res_get_static();
if (rs == NULL) return NULL;
const char* old_servent_ptr = rs->servent_ptr;
@@ -135,7 +135,7 @@ struct servent* getservbyname(const char* name, const char* proto) {
}
struct servent* getservbyport(int port, const char* proto) {
- struct res_static* rs = __res_get_static();
+ res_static rs = __res_get_static();
if (rs == NULL) return NULL;
const char* old_servent_ptr = rs->servent_ptr;