Skip to content
Snippets Groups Projects
Commit d5103ecc authored by Simon McVittie's avatar Simon McVittie
Browse files

search_ldpath: Be a bit more const-correct

parent 9e5736eb
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -475,7 +475,7 @@ search_ldcache (const char *name, ld_libs *ldlibs, int i)
static int
search_ldpath (const char *name, const char *ldpath, ld_libs *ldlibs, int i)
{
char *sp = (char *)ldpath;
const char *sp = ldpath;
char *prefix = ldlibs->prefix.path;
size_t plen = ldlibs->prefix.len;
......@@ -490,7 +490,7 @@ search_ldpath (const char *name, const char *ldpath, ld_libs *ldlibs, int i)
while( sp && *sp )
{
size_t len;
char *end;
const char *end;
end = strchr( sp, ':' );
if( end )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment