Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Unified Diff: fusl/src/network/lookup.h

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698