summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-03-27 15:12:20 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-03-27 15:12:20 +0200
commit4ed9d9539469ef25c105b63a8a5274c6f5cf257a (patch)
treeb364d8acc38249336bb312590e540c55b4270b76 /recording.c
parent9f0ac31f0dd617ae1575b230c9a4c00e17eb94c5 (diff)
downloadvdr-4ed9d9539469ef25c105b63a8a5274c6f5cf257a.tar.gz
vdr-4ed9d9539469ef25c105b63a8a5274c6f5cf257a.tar.bz2
Replaced "%lld" and "%llX" print format specifiers with "PRId64" and "PRIX64"
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/recording.c b/recording.c
index 97109457..ca8d6380 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 2.27 2011/03/20 10:33:30 kls Exp $
+ * $Id: recording.c 2.28 2011/03/27 15:02:53 kls Exp $
*/
#include "recording.h"
@@ -12,6 +12,8 @@
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
+#define __STDC_FORMAT_MACROS // Required for format specifiers
+#include <inttypes.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
@@ -1566,7 +1568,7 @@ cIndexFile::cIndexFile(const char *FileName, bool Record, bool IsPesRecording)
delta = int(buf.st_size % sizeof(tIndexTs));
if (delta) {
delta = sizeof(tIndexTs) - delta;
- esyslog("ERROR: invalid file size (%lld) in '%s'", buf.st_size, fileName);
+ esyslog("ERROR: invalid file size (%"PRId64") in '%s'", buf.st_size, fileName);
}
last = int((buf.st_size + delta) / sizeof(tIndexTs) - 1);
if (!Record && last >= 0) {