]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
install-file: make fs_make_very_read_only() static
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 May 2024 18:31:37 +0000 (03:31 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 17 May 2024 21:06:48 +0000 (23:06 +0200)
src/shared/install-file.c
src/shared/install-file.h

index 3b4d6510d2c7f36657266b125fd73c71715e7706..ea2189fc9efe501c09ef2e29b719ba259be265f8 100644 (file)
@@ -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;
 
index c37254fa72bf690989dd7e41a669e69a6dc71e8a..af07ab29d226a41e5f7c0fa1e0596220817d040a 100644 (file)
@@ -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 */