summaryrefslogtreecommitdiff
path: root/eit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-11-02 19:19:06 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2000-11-02 19:19:06 +0100
commitdd610898efd84b306988a4cd68efe6df0e0b878d (patch)
treeb5e286170acfca1979f33c3ed2268a1900d48718 /eit.c
parentef7f4ea17696ae65a25a6bc30f9d78c23a1d59b8 (diff)
downloadvdr-dd610898efd84b306988a4cd68efe6df0e0b878d.tar.gz
vdr-dd610898efd84b306988a4cd68efe6df0e0b878d.tar.bz2
Avoiding 'minmax.h' (missing on some systems)
Diffstat (limited to 'eit.c')
-rw-r--r--eit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/eit.c b/eit.c
index 588aa2c5..edc3d7b8 100644
--- a/eit.c
+++ b/eit.c
@@ -13,7 +13,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: eit.c 1.7 2000/11/01 15:53:00 kls Exp $
+ * $Id: eit.c 1.8 2000/11/02 19:19:06 kls Exp $
***************************************************************************/
#include "eit.h"
@@ -24,7 +24,6 @@
#include <fstream.h>
#include <iomanip.h>
#include <iostream.h>
-#include <minmax.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -753,7 +752,7 @@ protected: // Protected attributes
cEIT::cEIT(void * buf, int length, cSchedules *Schedules)
{
- buflen = min((unsigned int)length, sizeof(buffer));
+ buflen = length < int(sizeof(buffer)) ? length : sizeof(buffer);
memset(buffer, 0, sizeof(buffer));
memcpy(buffer, buf, buflen);
tid = buffer[0];