fix some gcc-2.95 errors
git-svn-id: https://svn.musicpd.org/mpd/trunk@414 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
7874a003e9
commit
fc84fa54fc
6
src/ls.c
6
src/ls.c
|
@ -130,10 +130,12 @@ int isFile(char * utf8file, time_t * mtime) {
|
|||
|
||||
int hasSuffix(char * utf8file, char * suffix) {
|
||||
char * file = utf8ToFsCharset(utf8file);
|
||||
char * dup = strdup(file);;
|
||||
char * dup = strdup(file);
|
||||
char * cLast;
|
||||
char * cNext = cLast = strtok(dup,".");
|
||||
char * cNext;
|
||||
int ret = 0;
|
||||
|
||||
cNext = cLast = strtok(dup,".");
|
||||
|
||||
while((cNext = strtok(NULL,"."))) cLast = cNext;
|
||||
if(cLast && 0==strcasecmp(cLast,suffix)) ret = 1;
|
||||
|
|
|
@ -172,9 +172,10 @@ int playerGetDecodeType(char * utf8file) {
|
|||
|
||||
int playerPlay(FILE * fp, char * utf8file) {
|
||||
PlayerControl * pc = &(getPlayerData()->playerControl);
|
||||
if(fp==NULL) fp = stderr;
|
||||
int decodeType;
|
||||
|
||||
if(fp==NULL) fp = stderr;
|
||||
|
||||
if(playerStop(fp)<0) return -1;
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue