File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,13 +77,13 @@ status_t MediaScanner::processDirectory(
7777}
7878
7979static bool fileMatchesExtension (const char * path, const char * extensions) {
80- char * extension = strrchr (path, ' .' );
80+ const char * extension = strrchr (path, ' .' );
8181 if (!extension) return false ;
8282 ++extension; // skip the dot
8383 if (extension[0 ] == 0 ) return false ;
8484
8585 while (extensions[0 ]) {
86- char * comma = strchr (extensions, ' ,' );
86+ const char * comma = strchr (extensions, ' ,' );
8787 size_t length = (comma ? comma - extensions : strlen (extensions));
8888 if (length == strlen (extension) && strncasecmp (extension, extensions, length) == 0 ) return true ;
8989 extensions += length;
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ HTTPDataSource::HTTPDataSource(
158158 string path;
159159 int port;
160160
161- char *slash = strchr (uri + 7 , ' /' );
161+ const char *slash = strchr (uri + 7 , ' /' );
162162 if (slash == NULL ) {
163163 host = uri + 7 ;
164164 path = " /" ;
@@ -167,7 +167,7 @@ HTTPDataSource::HTTPDataSource(
167167 path = slash;
168168 }
169169
170- char *colon = strchr (host.c_str (), ' :' );
170+ const char *colon = strchr (host.c_str (), ' :' );
171171 if (colon == NULL ) {
172172 port = 80 ;
173173 } else {
You can’t perform that action at this time.
0 commit comments