Skip to content

Commit a151516

Browse files
Su HangstefanhaRH
Su Hang
authored andcommitted
util/uri.c: wrap single statement blocks with braces {}
For this patch, using curly braces to wrap `if` `while` `else` statements, which only hold single statement. For example: ''' if (cond) statement; ''' to ''' if (cond) { statement; } ''' And using tricks that compare the disassemblies before and after code changes, to make sure code logic isn't changed: ''' git checkout master make util/uri.o strip util/uri.o objdump -Drx util/uri.o > /tmp/uri-master.txt git checkout cleanupbranch make util/uri.o strip util/uri.o objdump -Drx util/uri.o > /tmp/uri-cleanup.txt Signed-off-by: Stefan Hajnoczi <[email protected]>
1 parent 42fa272 commit a151516

File tree

1 file changed

+294
-169
lines changed

1 file changed

+294
-169
lines changed

0 commit comments

Comments
 (0)