coccinelle: run const-strlen.cocci again
This commit is contained in:
parent
967bae687c
commit
34d267776a
|
@ -821,7 +821,7 @@ static int fd_set_perms(Item *i, int fd, const struct stat *st) {
|
||||||
if (m == (st->st_mode & 07777))
|
if (m == (st->st_mode & 07777))
|
||||||
log_debug("\"%s\" has correct mode %o already.", path, st->st_mode);
|
log_debug("\"%s\" has correct mode %o already.", path, st->st_mode);
|
||||||
else {
|
else {
|
||||||
char procfs_path[strlen("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
|
char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
|
||||||
|
|
||||||
log_debug("Changing \"%s\" to mode %o.", path, m);
|
log_debug("Changing \"%s\" to mode %o.", path, m);
|
||||||
|
|
||||||
|
@ -920,7 +920,7 @@ static int parse_xattrs_from_arg(Item *i) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int fd_set_xattrs(Item *i, int fd, const struct stat *st) {
|
static int fd_set_xattrs(Item *i, int fd, const struct stat *st) {
|
||||||
char procfs_path[strlen("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
|
char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
|
||||||
_cleanup_free_ char *path = NULL;
|
_cleanup_free_ char *path = NULL;
|
||||||
char **name, **value;
|
char **name, **value;
|
||||||
int r;
|
int r;
|
||||||
|
@ -1024,7 +1024,7 @@ static int path_set_acl(const char *path, const char *pretty, acl_type_t type, a
|
||||||
static int fd_set_acls(Item *item, int fd, const struct stat *st) {
|
static int fd_set_acls(Item *item, int fd, const struct stat *st) {
|
||||||
int r = 0;
|
int r = 0;
|
||||||
#if HAVE_ACL
|
#if HAVE_ACL
|
||||||
char procfs_path[strlen("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
|
char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
|
||||||
_cleanup_free_ char *path = NULL;
|
_cleanup_free_ char *path = NULL;
|
||||||
|
|
||||||
assert(item);
|
assert(item);
|
||||||
|
@ -1186,7 +1186,7 @@ static int parse_attribute_from_arg(Item *item) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int fd_set_attribute(Item *item, int fd, const struct stat *st) {
|
static int fd_set_attribute(Item *item, int fd, const struct stat *st) {
|
||||||
char procfs_path[strlen("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
|
char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
|
||||||
_cleanup_close_ int procfs_fd = -1;
|
_cleanup_close_ int procfs_fd = -1;
|
||||||
_cleanup_free_ char *path = NULL;
|
_cleanup_free_ char *path = NULL;
|
||||||
unsigned f;
|
unsigned f;
|
||||||
|
|
Loading…
Reference in a new issue