Index: fusl/src/network/lookup.h |
diff --git a/fusl/src/network/lookup.h b/fusl/src/network/lookup.h |
index 0468edbc61c569d260fa2709ae719256523844b4..deb1826b5a83f68547138969b1459a87d16f1f04 100644 |
--- a/fusl/src/network/lookup.h |
+++ b/fusl/src/network/lookup.h |
@@ -5,23 +5,23 @@ |
#include <stddef.h> |
struct address { |
- int family; |
- unsigned scopeid; |
- uint8_t addr[16]; |
- int sortkey; |
+ int family; |
+ unsigned scopeid; |
+ uint8_t addr[16]; |
+ int sortkey; |
}; |
struct service { |
- uint16_t port; |
- unsigned char proto, socktype; |
+ uint16_t port; |
+ unsigned char proto, socktype; |
}; |
#define MAXNS 3 |
struct resolvconf { |
- struct address ns[MAXNS]; |
- unsigned nns, attempts, ndots; |
- unsigned timeout; |
+ struct address ns[MAXNS]; |
+ unsigned nns, attempts, ndots; |
+ unsigned timeout; |
}; |
/* The limit of 48 results is a non-sharp bound on the number of addresses |
@@ -30,10 +30,20 @@ struct resolvconf { |
#define MAXADDRS 48 |
#define MAXSERVS 2 |
-int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags); |
-int __lookup_name(struct address buf[static MAXADDRS], char canon[static 256], const char *name, int family, int flags); |
-int __lookup_ipliteral(struct address buf[static 1], const char *name, int family); |
- |
-int __get_resolv_conf(struct resolvconf *, char *, size_t); |
+int __lookup_serv(struct service buf[static MAXSERVS], |
+ const char* name, |
+ int proto, |
+ int socktype, |
+ int flags); |
+int __lookup_name(struct address buf[static MAXADDRS], |
+ char canon[static 256], |
+ const char* name, |
+ int family, |
+ int flags); |
+int __lookup_ipliteral(struct address buf[static 1], |
+ const char* name, |
+ int family); |
+ |
+int __get_resolv_conf(struct resolvconf*, char*, size_t); |
#endif |