Merge pull request #2 from AndrewFromMelbourne/master

open returns -1 on failure
This commit is contained in:
tasanakorn 2014-08-13 11:00:39 +07:00
commit 8087a71d03

2
main.c
View File

@ -38,7 +38,7 @@ int process() {
fbfd = open("/dev/fb1", O_RDWR); fbfd = open("/dev/fb1", O_RDWR);
if (!fbfd) { if (fbfd == -1) {
syslog(LOG_ERR, "Unable to open secondary display"); syslog(LOG_ERR, "Unable to open secondary display");
return -1; return -1;
} }