Systemd/src/sysusers
Michal Schmidt f647962d64 treewide: yet more log_*_errno + return simplifications
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.
2014-11-28 18:56:16 +01:00
..
Makefile sysusers: add minimal tool to reconstruct /etc/passwd and /etc/group from static files 2014-06-12 23:07:33 +02:00
sysusers.c treewide: yet more log_*_errno + return simplifications 2014-11-28 18:56:16 +01:00