mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
screensaver: use strcasecmp instead of strcmp
Origin commit data
------------------
Branch: ni/coolstream
Commit: f80f539387
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-01-08 (Thu, 08 Jan 2015)
Origin message was:
------------------
- screensaver: use strcasecmp instead of strcmp
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -156,7 +156,6 @@ bool CScreenSaver::ReadDir()
|
||||
DIR *dir;
|
||||
char curr_ext[5];
|
||||
int curr_lenght;
|
||||
char *p;
|
||||
bool ret = false;
|
||||
|
||||
v_bg_files.clear();
|
||||
@@ -177,10 +176,8 @@ bool CScreenSaver::ReadDir()
|
||||
{
|
||||
strncpy(curr_ext,(*dirpointer).d_name+(curr_lenght-4),5);
|
||||
|
||||
for (p = curr_ext; *p; ++p)
|
||||
*p = (char)tolower(*p);
|
||||
//printf("%s\n",curr_ext);
|
||||
if (strcmp(".jpg",curr_ext) && strcmp(".png",curr_ext))
|
||||
if (strcasecmp(".jpg",curr_ext) && strcasecmp(".png",curr_ext))
|
||||
continue;
|
||||
|
||||
str += "/";
|
||||
|
Reference in New Issue
Block a user