chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from:
f647962
)
treewide: yet more log_*_errno + return simplifications
author
Michal Schmidt
<mschmidt@redhat.com>
Fri, 28 Nov 2014 17:50:43 +0000
(18:50 +0100)
committer
Michal Schmidt
<mschmidt@redhat.com>
Fri, 28 Nov 2014 17:56:16 +0000
(18:56 +0100)
Using:
find . -name '*.[ch]' | while read f; do perl -i.mmm -e \
'local $/;
local $_=<>;
s/(if\s*\([^\n]+\))\s*{\n(\s*)(log_[a-z_]*_errno\(\s*([->a-zA-Z_]+)\s*,[^;]+);\s*return\s+\g4;\s+}/\1\n\2return \3;/msg;
print;'
$f
done
And a couple of manual whitespace fixups.
No differences found