From 6acdc609f91110c4297f1128c54ec0aa1c392bf7 Mon Sep 17 00:00:00 2001 From: nightshad Date: Thu, 20 May 2010 09:22:39 +0000 Subject: [PATCH] Fix compiler error on open(). Some small indent changes. New CS header file. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@585 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/driver/framebuffer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/driver/framebuffer.cpp b/src/driver/framebuffer.cpp index 385f8f84b..a1cd2434f 100644 --- a/src/driver/framebuffer.cpp +++ b/src/driver/framebuffer.cpp @@ -43,9 +43,9 @@ #include #include #include -//#include #include -#include +#include + extern cVideo * videoDecoder; extern CPictureViewer * g_PicViewer; @@ -296,12 +296,12 @@ printf("smem_start %x\n", smem_start); } if (-1 == ioctl(tty,VT_GETMODE, &vt_mode)) { - perror("ioctl VT_GETMODE"); + perror("ioctl VT_GETMODE"); goto nolfb; } if (-1 == ioctl(tty,VT_GETMODE, &mode)) { - perror("ioctl VT_GETMODE"); + perror("ioctl VT_GETMODE"); goto nolfb; } @@ -1251,7 +1251,7 @@ bool CFrameBuffer::savePictureFromMem(const std::string & filename, const fb_pix header.height_hi = height >> 8; header.transp = 0; - lfd = open((iconBasePath + filename).c_str(), O_WRONLY | O_CREAT); + lfd = open((iconBasePath + filename).c_str(), O_WRONLY | O_CREAT, 0644); if (lfd==-1) {