tree-wide: drop unnecessary inclusion of version.h

This commit is contained in:
Yu Watanabe 2023-06-28 06:08:47 +09:00
parent 4122d68682
commit bdb577f545
9 changed files with 3 additions and 8 deletions

View file

@ -86,7 +86,6 @@
#include "unit-name.h"
#include "verb-log-control.h"
#include "verbs.h"
#include "version.h"
DotMode arg_dot = DEP_ALL;
char **arg_dot_from_patterns = NULL, **arg_dot_to_patterns = NULL;

View file

@ -1,8 +1,6 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include "version.h"
extern const char* const systemd_features;
int version(void);

View file

@ -39,6 +39,7 @@
#include "strv.h"
#include "syslog-util.h"
#include "user-util.h"
#include "version.h"
#include "virt.h"
#include "watchdog.h"

View file

@ -99,6 +99,7 @@
#include "time-util.h"
#include "umask-util.h"
#include "user-util.h"
#include "version.h"
#include "virt.h"
#include "watchdog.h"

View file

@ -7,6 +7,7 @@
#include "manager-dump.h"
#include "memstream-util.h"
#include "unit-serialize.h"
#include "version.h"
void manager_dump_jobs(Manager *s, FILE *f, char **patterns, const char *prefix) {
Job *j;

View file

@ -1,7 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include "version.h"
#ifdef SBAT_DISTRO
# define SBAT_SECTION_TEXT \
"sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md\n" \

View file

@ -17,7 +17,6 @@
#include "io-util.h"
#include "log.h"
#include "main-func.h"
#include "version.h"
#define DEFAULT_BUS_PATH "unix:path=/run/dbus/system_bus_socket"

View file

@ -9,7 +9,6 @@
#include "proc-cmdline.h"
#include "string-util.h"
#include "tests.h"
#include "version.h"
static void test_is_wanted_print_one(bool header) {
_cleanup_free_ char *cmdline = NULL;

View file

@ -15,7 +15,6 @@
#include "strv.h"
#include "tests.h"
#include "user-util.h"
#include "version.h"
static void check_p_d_u(const char *path, int code, const char *result) {
_cleanup_free_ char *unit = NULL;