Su Hang
a1515161b5
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 <stefanha@redhat.com >
2018-03-05 09:03:17 +00:00
..
2018-02-10 10:43:18 +03:00
2017-07-17 15:58:37 +01:00
2017-02-21 11:14:07 +00:00
2017-11-21 11:58:07 -05:00
2017-09-22 14:11:25 +02:00
2017-09-22 14:11:23 +02:00
2017-07-24 12:42:55 +01:00
2017-09-07 19:02:30 +01:00
2017-03-03 16:40:02 +01:00
2016-09-29 14:13:39 +02:00
2018-02-07 14:09:24 +01:00
2016-09-29 14:13:39 +02:00
2017-09-19 16:20:49 +02:00
2017-05-07 09:57:51 +03:00
2017-07-13 13:50:19 +02:00
2018-01-24 19:20:19 +02:00
2018-01-24 19:20:19 +02:00
2017-02-13 17:27:13 +00:00
2018-02-07 11:35:49 -05:00
2017-01-31 10:10:14 +11:00
2017-02-21 11:14:07 +00:00
2016-08-03 18:44:57 +02:00
2018-02-09 13:52:15 +01:00
2017-01-16 13:25:18 +00:00
2017-02-23 20:35:35 +01:00
2017-09-19 14:09:34 +02:00
2018-02-08 09:22:03 +08:00
2018-02-07 14:09:25 +01:00
2017-12-15 15:26:24 +00:00
2016-10-07 14:14:06 +02:00
2018-01-23 12:33:07 +01:00
2018-02-19 13:03:24 +02:00
2018-02-19 13:03:24 +02:00
2017-10-10 09:45:00 -07:00
2017-03-14 13:26:37 +01:00
2016-08-03 18:44:56 +02:00
2018-02-09 13:52:15 +01:00
2016-07-13 13:26:02 +02:00
2018-02-15 09:39:49 +00:00
2017-12-19 09:25:27 +00:00
2017-11-21 11:58:07 -05:00
2017-07-24 14:16:29 +02:00
2018-02-09 13:52:15 +01:00
2017-04-28 18:48:11 +02:00
2018-02-05 18:09:45 +01:00
2018-01-16 14:54:52 +01:00
2018-01-16 14:54:52 +01:00
2017-03-14 13:51:34 +01:00
2016-10-06 18:04:13 +02:00
2017-12-21 09:30:32 +01:00
2018-02-05 13:54:39 +01:00
2017-11-15 09:34:51 +01:00
2017-03-19 11:12:12 +01:00
2017-03-17 12:54:21 +01:00
2017-09-26 14:46:23 +02:00
2018-02-08 09:22:03 +08:00
2018-03-05 09:03:17 +00:00
2017-12-20 22:01:24 +08:00
2018-03-01 15:21:46 +08:00