[systemd-devel] various cleanups

Simon Peeters peeters.simon at gmail.com
Fri Jan 3 17:35:22 PST 2014


Hello,

I have tried to do some cleanups in src/shared 

The "CACHED_METHOD" one might be going a bit to far,
so feel free to drop it if you don't like it.

[PATCH 1/5] shared: procfs_file_alloca: handle pid==0
[PATCH 2/5] util: CACHED_METHOD macro
[PATCH 3/5] shared: util.c: unify split and split_quoted
[PATCH 4/5] util.c: use read_one_line_file where possible
[PATCH 5/5] strv: multiple cleanups

 src/core/main.c                 |  20 ++--
 src/modules-load/modules-load.c |   6 +-
 src/shared/apparmor-util.c      |  16 +--
 src/shared/audit.c              |  10 +-
 src/shared/cgroup-util.c        |   5 +-
 src/shared/ima-util.c           |  11 +-
 src/shared/macro.h              |  16 +++
 src/shared/path-lookup.c        |  83 ++++-----------
 src/shared/smack-util.c         |  15 ++-
 src/shared/strv.c               | 158 +++++----------------------
 src/shared/strv.h               |   6 +-
 src/shared/util.c               | 229 +++++++++++-----------------------------
 src/shared/util.h               |  23 ++--
 src/sysctl/sysctl.c             |   6 +-
 src/systemctl/systemctl.c       |  17 ++-
 src/test/test-strv.c            |  77 +++++---------
 16 files changed, 208 insertions(+), 490 deletions(-)



More information about the systemd-devel mailing list