From 3e57e6c7203e7a659bb4b3cca3bc7383488787a2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 11 Dec 2017 20:01:55 +0100 Subject: basic: turn off stdio locking for a couple of helper calls These helper calls are potentially called often, and allocate FILE* objects internally for a very short period of time, let's turn off locking for them too. --- src/basic/mount-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/basic/mount-util.c') diff --git a/src/basic/mount-util.c b/src/basic/mount-util.c index 03e1b9a42..d2cc70d5c 100644 --- a/src/basic/mount-util.c +++ b/src/basic/mount-util.c @@ -116,7 +116,7 @@ int name_to_handle_at_loop( } static int fd_fdinfo_mnt_id(int fd, const char *filename, int flags, int *mnt_id) { - char path[STRLEN("/proc/self/fdinfo/") + DECIMAL_STR_MAX(int)]; + char path[strlen("/proc/self/fdinfo/") + DECIMAL_STR_MAX(int)]; _cleanup_free_ char *fdinfo = NULL; _cleanup_close_ int subfd = -1; char *p; -- cgit v1.2.3