mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
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
This commit is contained in:
@@ -43,9 +43,9 @@
|
|||||||
#include <gui/color.h>
|
#include <gui/color.h>
|
||||||
#include <gui/pictureviewer.h>
|
#include <gui/pictureviewer.h>
|
||||||
#include <global.h>
|
#include <global.h>
|
||||||
//#include <cnxtfb.h>
|
|
||||||
#include <video_cs.h>
|
#include <video_cs.h>
|
||||||
#include <init_cs.h>
|
#include <cs_api.h>
|
||||||
|
|
||||||
extern cVideo * videoDecoder;
|
extern cVideo * videoDecoder;
|
||||||
|
|
||||||
extern CPictureViewer * g_PicViewer;
|
extern CPictureViewer * g_PicViewer;
|
||||||
@@ -296,12 +296,12 @@ printf("smem_start %x\n", smem_start);
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (-1 == ioctl(tty,VT_GETMODE, &vt_mode)) {
|
if (-1 == ioctl(tty,VT_GETMODE, &vt_mode)) {
|
||||||
perror("ioctl VT_GETMODE");
|
perror("ioctl VT_GETMODE");
|
||||||
goto nolfb;
|
goto nolfb;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (-1 == ioctl(tty,VT_GETMODE, &mode)) {
|
if (-1 == ioctl(tty,VT_GETMODE, &mode)) {
|
||||||
perror("ioctl VT_GETMODE");
|
perror("ioctl VT_GETMODE");
|
||||||
goto nolfb;
|
goto nolfb;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1251,7 +1251,7 @@ bool CFrameBuffer::savePictureFromMem(const std::string & filename, const fb_pix
|
|||||||
header.height_hi = height >> 8;
|
header.height_hi = height >> 8;
|
||||||
header.transp = 0;
|
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)
|
if (lfd==-1)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user