diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-11-06 16:45:48 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-11-08 18:21:10 +0100 |
commit | ee617a4e5ca5828cabd46f3bb1d9ffc0dd3db9e5 (patch) | |
tree | 4c87c8db4af1a2bbe5678c3c965a33a90682dd41 /src/basic/meson.build | |
parent | c47511da7e2bab1a429fc1958a73d3f426ebb3da (diff) | |
download | systemd-ee617a4e5ca5828cabd46f3bb1d9ffc0dd3db9e5.tar.gz |
basic: move a bunch of cmdline-related funcs to new argv-util.c+h
I wanted to move saved_arg[cv] to process-util.c+h, but this causes problems:
process-util.h includes format-util.h which includes net/if.h, which conflicts
with linux/if.h. So we can't include process-util.h in some files.
But process-util.c is very long anyway, so it seems nice to create a new file.
rename_process(), invoked_as(), invoked_by_systemd(), and argv_looks_like_help()
which lived in process-util.c refer to saved_argc and saved_argv, so it seems
reasonable to move them to the new file too.
util.c is now empty, so it is removed. util.h remains.
Diffstat (limited to 'src/basic/meson.build')
-rw-r--r-- | src/basic/meson.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/basic/meson.build b/src/basic/meson.build index c1d970b6a9..c5dd116964 100644 --- a/src/basic/meson.build +++ b/src/basic/meson.build @@ -9,6 +9,8 @@ basic_sources = files( 'alloc-util.h', 'architecture.c', 'architecture.h', + 'argv-util.c', + 'argv-util.h', 'arphrd-util.c', 'arphrd-util.h', 'async.c', @@ -256,7 +258,6 @@ basic_sources = files( 'user-util.h', 'utf8.c', 'utf8.h', - 'util.c', 'util.h', 'virt.c', 'virt.h', |