Chromium Code Reviews

Side by Side Diff: fusl/src/network/dn_skipname.c

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.
Jump to:
View unified diff |
OLDNEW
1 #include <resolv.h> 1 #include <resolv.h>
2 2
3 int dn_skipname(const unsigned char *s, const unsigned char *end) 3 int dn_skipname(const unsigned char* s, const unsigned char* end) {
4 { 4 const unsigned char* p;
5 » const unsigned char *p; 5 for (p = s; p < end; p++)
6 » for (p=s; p<end; p++) 6 if (!*p)
7 » » if (!*p) return p-s+1; 7 return p - s + 1;
8 » » else if (*p>=192) { 8 else if (*p >= 192) {
9 » » » if (p+1<end) return p-s+2; 9 if (p + 1 < end)
10 » » » else break; 10 return p - s + 2;
11 » » } 11 else
12 » return -1; 12 break;
13 }
14 return -1;
13 } 15 }
OLDNEW

Powered by Google App Engine