1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

elf: remove redundant is_path argument

is_path argument is no longer used and could be safely removed.

* elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
updated.
* elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
expand_dynamic_string_token): Likewise.
* sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
is_path argument.
This commit is contained in:
Dmitry V. Levin
2017-12-20 11:27:51 +00:00
parent 1c36e1e6a5
commit 2bd86632b7
5 changed files with 27 additions and 24 deletions

View File

@ -100,7 +100,7 @@ struct list
({ \
const char *__str = (str); \
const char *__result = __str; \
size_t __dst_cnt = DL_DST_COUNT (__str, 0); \
size_t __dst_cnt = DL_DST_COUNT (__str); \
\
if (__dst_cnt != 0) \
{ \
@ -114,7 +114,7 @@ DST not allowed in SUID/SGID programs")); \
__newp = (char *) alloca (DL_DST_REQUIRED (l, __str, strlen (__str), \
__dst_cnt)); \
\
__result = _dl_dst_substitute (l, __str, __newp, 0); \
__result = _dl_dst_substitute (l, __str, __newp); \
\
if (*__result == '\0') \
{ \