mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 15:32:43 +02:00
libeplayer3-arm: insert original blank lines from exteplayer3.git, for better merge
Origin commit data
------------------
Branch: master
Commit: b8d7e5ead4
Author: max_10 <max_10@gmx.de>
Date: 2018-04-10 (Tue, 10 Apr 2018)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -56,14 +56,17 @@ static inline char *basename(char *name)
|
||||
{
|
||||
int i = 0;
|
||||
int pos = 0;
|
||||
|
||||
while (name[i] != 0)
|
||||
{
|
||||
if (name[i] == '/')
|
||||
pos = i;
|
||||
i++;
|
||||
}
|
||||
|
||||
if (name[pos] == '/')
|
||||
pos++;
|
||||
|
||||
return name + pos;
|
||||
}
|
||||
|
||||
@@ -73,6 +76,7 @@ static inline char *dirname(char *name)
|
||||
static char path[100];
|
||||
uint32_t i = 0;
|
||||
int32_t pos = 0;
|
||||
|
||||
while ((name[i] != 0) && (i < sizeof(path)))
|
||||
{
|
||||
if (name[i] == '/')
|
||||
@@ -82,8 +86,10 @@ static inline char *dirname(char *name)
|
||||
path[i] = name[i];
|
||||
i++;
|
||||
}
|
||||
|
||||
path[i] = 0;
|
||||
path[pos] = 0;
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user