diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-11 20:01:55 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-05-30 07:49:34 +0200 |
commit | 3e57e6c7203e7a659bb4b3cca3bc7383488787a2 (patch) | |
tree | 1f7be153e6b96a908204a36317b03802c3cfeaa1 /src/basic/mount-util.c | |
parent | 49f31f9f4ff7491b3cd6e2fd30b5d8ff95b2f62a (diff) |
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.
Diffstat (limited to 'src/basic/mount-util.c')
-rw-r--r-- | src/basic/mount-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |