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

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

Issue 1581513002: Fix dangling-else warnings in fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« fusl/src/ctype/towctrans.c ('K') | « fusl/src/ctype/towctrans.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
5 const unsigned char *p; 5 const unsigned char *p;
6 for (p=s; p<end; p++) 6 for (p=s; p<end; p++)
7 if (!*p) return p-s+1; 7 if (!*p) 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) return p-s+2;
10 else break; 10 else break;
11 }
viettrungluu 2016/01/12 16:47:50 Ditto here. Though now I'm betting on rietveld fai
11 return -1; 12 return -1;
12 } 13 }
OLDNEW
« fusl/src/ctype/towctrans.c ('K') | « fusl/src/ctype/towctrans.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698