summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-10-20 09:57:55 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2013-10-20 09:57:55 +0200
commit4ea90cefe831c52777f1be0877b499f432529cc7 (patch)
treed8e7cda0e82d04728b71b4c3c3250dd5b06486a8
parent97eb54738f55e8a7682a662be9492792bb23ad33 (diff)
downloadvdr-4ea90cefe831c52777f1be0877b499f432529cc7.tar.gz
vdr-4ea90cefe831c52777f1be0877b499f432529cc7.tar.bz2
Fixed some compiler warnings with gcc-4.6.3
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY1
-rw-r--r--recording.c4
-rw-r--r--svdrp.c6
4 files changed, 7 insertions, 5 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 3c31e1cc..7fb012f9 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1173,6 +1173,7 @@ Rolf Ahrenberg <Rolf.Ahrenberg@sci.fi>
and add support for DVB-S2 "Input Stream Identifier" (ISI)
for helping to debug and understand subtitle page refreshes
for a patch that was used to implement the SVDRP command RENR
+ for fixing some compiler warnings with gcc-4.6.3
Ralf Klueber <ralf.klueber@vodafone.com>
for reporting a bug in cutting a recording if there is only a single editing mark
diff --git a/HISTORY b/HISTORY
index e5255e70..45b247b0 100644
--- a/HISTORY
+++ b/HISTORY
@@ -8015,3 +8015,4 @@ Video Disk Recorder Revision History
- Changed the return value of cPositioner::HorizonLongitude() to 0 in case the
latitude of the antenna location is beyond +/-81 degrees.
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
+- Fixed some compiler warnings with gcc-4.6.3 (thanks to Rolf Ahrenberg).
diff --git a/recording.c b/recording.c
index e41a89ea..d6ffb41e 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 3.7 2013/10/16 10:24:28 kls Exp $
+ * $Id: recording.c 3.8 2013/10/20 09:51:23 kls Exp $
*/
#include "recording.h"
@@ -1693,7 +1693,7 @@ void cDirCopier::Action(void)
off_t FileSizeSrc = FileSize(FileNameSrc);
off_t FileSizeDst = FileSize(FileNameDst);
if (FileSizeSrc != FileSizeDst) {
- esyslog("ERROR: file size discrepancy: %lld != %lld", FileSizeSrc, FileSizeDst);
+ esyslog("ERROR: file size discrepancy: %"PRId64" != %"PRId64, FileSizeSrc, FileSizeDst);
break;
}
}
diff --git a/svdrp.c b/svdrp.c
index 7f91479f..4e7665b9 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 3.3 2013/10/14 09:49:38 kls Exp $
+ * $Id: svdrp.c 3.4 2013/10/20 09:53:13 kls Exp $
*/
#include "svdrp.h"
@@ -686,7 +686,7 @@ void cSVDRP::CmdDELR(const char *Option)
cRecording *recording = recordings.Get(strtol(Option, NULL, 10) - 1);
if (recording) {
if (int RecordingInUse = recording->IsInUse())
- Reply(550, RecordingInUseMessage(RecordingInUse, Option, recording));
+ Reply(550, "%s", *RecordingInUseMessage(RecordingInUse, Option, recording));
else {
if (recording->Delete()) {
Reply(250, "Recording \"%s\" deleted", Option);
@@ -1564,7 +1564,7 @@ void cSVDRP::CmdRENR(const char *Option)
cRecording *recording = recordings.Get(strtol(num, NULL, 10) - 1);
if (recording) {
if (int RecordingInUse = recording->IsInUse())
- Reply(550, RecordingInUseMessage(RecordingInUse, Option, recording));
+ Reply(550, "%s", *RecordingInUseMessage(RecordingInUse, Option, recording));
else {
if (c)
option = skipspace(++option);