git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77da383
)
Input: add guarding parentheses to macros
author
Simon Budig
<simon.budig@kernelconcepts.de>
Tue, 5 Jul 2011 02:56:01 +0000
(19:56 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Tue, 5 Jul 2011 03:03:40 +0000
(20:03 -0700)
Put parentheses around macro argument uses. This avoids pitfalls
for the programmer, where the argument expansion does not give the
expected result, for example:
ioctl (fd, EVIOCGABS (have_mt ? ABS_MT_POSITION_X : ABS_X), &abs);
Signed-off-by: Simon Budig <simon.budig@kernelconcepts.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
No differences found