chattr-util: drop mostly unused 'previous' argument from chattr_path() and friends
This commit is contained in:
@@ -41,14 +41,14 @@ typedef enum ChattrApplyFlags {
|
||||
} ChattrApplyFlags;
|
||||
|
||||
int chattr_full(int dir_fd, const char *path, unsigned value, unsigned mask, unsigned *ret_previous, unsigned *ret_final, ChattrApplyFlags flags);
|
||||
static inline int chattr_at(int dir_fd, const char *path, unsigned value, unsigned mask, unsigned *previous) {
|
||||
return chattr_full(dir_fd, path, value, mask, previous, NULL, 0);
|
||||
static inline int chattr_at(int dir_fd, const char *path, unsigned value, unsigned mask) {
|
||||
return chattr_full(dir_fd, path, value, mask, NULL, NULL, 0);
|
||||
}
|
||||
static inline int chattr_fd(int fd, unsigned value, unsigned mask, unsigned *previous) {
|
||||
return chattr_full(fd, NULL, value, mask, previous, NULL, 0);
|
||||
static inline int chattr_fd(int fd, unsigned value, unsigned mask) {
|
||||
return chattr_full(fd, NULL, value, mask, NULL, NULL, 0);
|
||||
}
|
||||
static inline int chattr_path(const char *path, unsigned value, unsigned mask, unsigned *previous) {
|
||||
return chattr_full(AT_FDCWD, path, value, mask, previous, NULL, 0);
|
||||
static inline int chattr_path(const char *path, unsigned value, unsigned mask) {
|
||||
return chattr_full(AT_FDCWD, path, value, mask, NULL, NULL, 0);
|
||||
}
|
||||
|
||||
int read_attr_fd(int fd, unsigned *ret);
|
||||
|
||||
Reference in New Issue
Block a user