[Commits] : Tuxbox-GIT: apps branch master updated. CVS-Final-601-gd936ee9
Tuxbox Sources
Brought to you by:
dbt1
From: GetAway <tux...@ne...> - 2015-06-14 13:28:38
|
Project "Tuxbox-GIT: apps": The branch, master has been updated via d936ee9b40bbca32cbf577af8b8257ae0fe7beb3 (commit) from 6a2e3ec0bead9e2f42fec81248b1c94bc345462f (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit d936ee9b40bbca32cbf577af8b8257ae0fe7beb3 Author: GetAway <get...@t-...> Date: Sun Jun 14 15:28:03 2015 +0200 lcdd.cpp: use file_exists Signed-off-by: GetAway <get...@t-...> diff --git a/tuxbox/neutrino/src/driver/lcdd.cpp b/tuxbox/neutrino/src/driver/lcdd.cpp index fa42e22..c3e4fe9 100644 --- a/tuxbox/neutrino/src/driver/lcdd.cpp +++ b/tuxbox/neutrino/src/driver/lcdd.cpp @@ -35,6 +35,7 @@ #include <global.h> #include <neutrino.h> #include <system/settings.h> +#include <system/helper.h> #include <driver/encoding.h> #include <driver/newclock.h> @@ -47,7 +48,6 @@ #include <fcntl.h> #include <time.h> #include <unistd.h> -#include <sys/stat.h> #include <daemonc/remotecontrol.h> extern CRemoteControl * g_RemoteControl; /* neutrino.cpp */ @@ -108,8 +108,7 @@ void* CLCD::TimeThread(void *) while(1) { sleep(1); - struct stat buf; - if (stat("/tmp/lcd.locked", &buf) == -1) { + if (!file_exists("/tmp/lcd.locked")) { CLCD::getInstance()->showTime(); CLCD::getInstance()->count_down(); } else @@ -277,8 +276,7 @@ bool CLCD::lcdInit(const char *fontfile, const char *fontfile2, const char *font void CLCD::displayUpdate() { - struct stat buf; - if (stat("/tmp/lcd.locked", &buf) == -1) + if (!file_exists("/tmp/lcd.locked")) display.update(); } ----------------------------------------------------------------------- Summary of changes: tuxbox/neutrino/src/driver/lcdd.cpp | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) -- Tuxbox-GIT: apps |