summaryrefslogtreecommitdiff
path: root/command/markad-standalone.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-05-25 15:10:21 +0200
committerJochen Dolze <vdr@dolze.de>2010-05-25 15:10:21 +0200
commitb7c606a20063d600708e82ee9ad65d128dab77aa (patch)
treef4ff2c69db787048872131120290a35d42773b68 /command/markad-standalone.cpp
parent6ac4484e8b861dd781d6d5b573b315d54fa7b322 (diff)
downloadvdr-plugin-markad-b7c606a20063d600708e82ee9ad65d128dab77aa.tar.gz
vdr-plugin-markad-b7c606a20063d600708e82ee9ad65d128dab77aa.tar.bz2
Fixed some compiler warnings
Diffstat (limited to 'command/markad-standalone.cpp')
-rw-r--r--command/markad-standalone.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/command/markad-standalone.cpp b/command/markad-standalone.cpp
index c11f880..72fe12a 100644
--- a/command/markad-standalone.cpp
+++ b/command/markad-standalone.cpp
@@ -102,9 +102,10 @@ void *cOSDMessage::send(void *posd)
return NULL;
}
- write(sock,"MESG ",5);
- write(sock,osd->msg,strlen(osd->msg));
- write(sock,"\r\n",2);
+ ssize_t ret;
+ ret=write(sock,"MESG ",5);
+ ret=write(sock,osd->msg,strlen(osd->msg));
+ ret=write(sock,"\r\n",2);
if (!osd->readreply(sock))
{
@@ -112,7 +113,7 @@ void *cOSDMessage::send(void *posd)
return NULL;
}
- write(sock,"QUIT\r\n",6);
+ ret=write(sock,"QUIT\r\n",6);
osd->readreply(sock);
close(sock);
@@ -470,8 +471,8 @@ void cMarkAdStandalone::SaveFrame(int frame)
macontext.Video.Info.Height);
// Write pixel data
- fwrite(macontext.Video.Data.Plane[0],1,
- macontext.Video.Data.PlaneLinesize[0]*macontext.Video.Info.Height,pFile);
+ if (fwrite(macontext.Video.Data.Plane[0],1,
+ macontext.Video.Data.PlaneLinesize[0]*macontext.Video.Info.Height,pFile)) {};
// Close file
fclose(pFile);
}
@@ -1227,7 +1228,7 @@ bool cMarkAdStandalone::RegenerateVDRIndex(const char *Directory)
struct stat statbuf;
if (!stat(spath,&statbuf))
{
- chown(newpath,statbuf.st_uid, statbuf.st_gid);
+ if (chown(newpath,statbuf.st_uid, statbuf.st_gid)) {};
}
free(spath);
}
@@ -1288,7 +1289,7 @@ bool cMarkAdStandalone::CreatePidfile(const char *Directory)
struct stat statbuf;
if (!stat(Directory,&statbuf))
{
- chown(buf,statbuf.st_uid, statbuf.st_gid);
+ if (chown(buf,statbuf.st_uid, statbuf.st_gid)) {};
}
}