summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-01-11 15:54:37 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-01-11 15:54:37 +0100
commit7f9d14ee8b181a999afb997d74a24b3087fd9d33 (patch)
tree8c1c2238cb7137033ae68ba7d4e32a3d7a22f548 /tools.c
parent43ca916c20a72c9b47a15c460cced63b5c19c286 (diff)
downloadvdr-7f9d14ee8b181a999afb997d74a24b3087fd9d33.tar.gz
vdr-7f9d14ee8b181a999afb997d74a24b3087fd9d33.tar.bz2
The actual transponder data is now taken from the NIT1.3.1
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools.c b/tools.c
index 21ec526c..fc8cb294 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.77 2003/04/06 15:31:45 kls Exp $
+ * $Id: tools.c 1.78 2004/01/11 15:42:30 kls Exp $
*/
#include "tools.h"
@@ -20,6 +20,14 @@
int SysLogLevel = 3;
+int BCD2INT(int x)
+{
+ return ((1000000 * BCDCHARTOINT((x >> 24) & 0xFF)) +
+ (10000 * BCDCHARTOINT((x >> 16) & 0xFF)) +
+ (100 * BCDCHARTOINT((x >> 8) & 0xFF)) +
+ BCDCHARTOINT( x & 0xFF));
+}
+
ssize_t safe_read(int filedes, void *buffer, size_t size)
{
for (;;) {