open returns -1 on failure

This commit is contained in:
AndrewFromMelbourne 2014-07-06 16:48:47 +10:00
parent 9689a3b4e2
commit a749e21e73

2
main.c
View File

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