- fix-compiler-warnings

This commit is contained in:
max_10
2019-02-03 00:36:28 +01:00
committed by Thilo Graf
parent 32bc62a65b
commit cb7c9874e8
6 changed files with 14 additions and 24 deletions

View File

@@ -132,12 +132,12 @@ stb_type_t GetSTBType()
static stb_type_t type = STB_UNKNOWN;
if (type == STB_UNKNOWN)
{
struct stat buffer;
// struct stat buffer;
if (access("/proc/stb/tpm/0/serial", F_OK) != -1)
{
type = STB_DREAMBOX;
}
else if (access("/proc/stb/info/vumodel", F_OK) != -1 && \
else if (access("/proc/stb/info/vumodel", F_OK) != -1 &&
access("/proc/stb/info/boxtype", F_OK) == -1)
{
// some STB like Octagon SF4008 has also /proc/stb/info/vumodel