1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-07 17:17:44 +03:00

src: The return value of server_vacuum () is not used and could be modified to void type

This commit is contained in:
Li kunyu 2022-05-18 14:52:43 +08:00 committed by Zbigniew Jędrzejewski-Szmek
parent 9db25d01ef
commit b278cf2efd
2 changed files with 2 additions and 4 deletions

View File

@ -713,7 +713,7 @@ static void do_vacuum(Server *s, JournalStorage *storage, bool verbose) {
cache_space_invalidate(&storage->space);
}
int server_vacuum(Server *s, bool verbose) {
void server_vacuum(Server *s, bool verbose) {
assert(s);
log_debug("Vacuuming...");
@ -724,8 +724,6 @@ int server_vacuum(Server *s, bool verbose) {
do_vacuum(s, &s->system_storage, verbose);
if (s->runtime_journal)
do_vacuum(s, &s->runtime_storage, verbose);
return 0;
}
static void server_cache_machine_id(Server *s) {

View File

@ -217,7 +217,7 @@ SplitMode split_mode_from_string(const char *s) _pure_;
int server_init(Server *s, const char *namespace);
void server_done(Server *s);
void server_sync(Server *s);
int server_vacuum(Server *s, bool verbose);
void server_vacuum(Server *s, bool verbose);
void server_rotate(Server *s);
int server_schedule_sync(Server *s, int priority);
int server_flush_to_var(Server *s, bool require_flag_file);