chiark / gitweb /
treewide: yet more log_*_errno + return simplifications
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 28 Nov 2014 17:50:43 +0000 (18:50 +0100)
committerMichal 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