From: Yu Watanabe Date: Fri, 17 May 2024 18:31:37 +0000 (+0900) Subject: install-file: make fs_make_very_read_only() static X-Git-Tag: v256-rc3~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3c5ea71114abf54f2265de9b600f0a5648a8de7;p=thirdparty%2Fsystemd.git install-file: make fs_make_very_read_only() static --- diff --git a/src/shared/install-file.c b/src/shared/install-file.c index 3b4d6510d2c..ea2189fc9ef 100644 --- a/src/shared/install-file.c +++ b/src/shared/install-file.c @@ -12,7 +12,7 @@ #include "rm-rf.h" #include "sync-util.h" -int fs_make_very_read_only(int fd) { +static int fs_make_very_read_only(int fd) { struct stat st; int r; diff --git a/src/shared/install-file.h b/src/shared/install-file.h index c37254fa72b..af07ab29d22 100644 --- a/src/shared/install-file.h +++ b/src/shared/install-file.h @@ -1,8 +1,6 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once -int fs_make_very_read_only(int fd); - typedef enum InstallFileFlags { INSTALL_REPLACE = 1 << 0, /* Replace an existing inode */ INSTALL_READ_ONLY = 1 << 1, /* Call fs_make_very_read_only() to make the inode comprehensively read-only */