Skip to content

Commit

Permalink
install-file: make fs_make_very_read_only() static
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwata authored and bluca committed May 17, 2024
1 parent 3acc318 commit f3c5ea7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/shared/install-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions src/shared/install-file.h
Original file line number Diff line number Diff line change
@@ -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 */
Expand Down

0 comments on commit f3c5ea7

Please sign in to comment.