summaryrefslogtreecommitdiff
path: root/remote.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 /remote.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 'remote.c')
-rw-r--r--remote.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/remote.c b/remote.c
index 048b98c3..cd3a7585 100644
--- a/remote.c
+++ b/remote.c
@@ -4,11 +4,13 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remote.c 2.2 2010/12/24 15:26:05 kls Exp $
+ * $Id: remote.c 2.3 2011/03/27 15:03:36 kls Exp $
*/
#include "remote.h"
#include <fcntl.h>
+#define __STDC_FORMAT_MACROS // Required for format specifiers
+#include <inttypes.h>
#include <netinet/in.h>
#include <string.h>
#include <sys/types.h>
@@ -122,7 +124,7 @@ bool cRemote::PutMacro(eKeys Key)
bool cRemote::Put(uint64_t Code, bool Repeat, bool Release)
{
char buffer[32];
- snprintf(buffer, sizeof(buffer), "%016llX", Code);
+ snprintf(buffer, sizeof(buffer), "%016"PRIX64, Code);
return Put(buffer, Repeat, Release);
}