~ubuntu-branches/ubuntu/karmic/zapping/karmic

« back to all changes in this revision

Viewing changes to libvbi/packet-830.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Luberda
  • Date: 2008-02-14 12:56:23 UTC
  • mfrom: (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20080214125623-975n25ve2dat7jen
Tags: 0.10~cvs6-2
05_ftbfs_powerpc_libtv.patch: Try to fix FTBFS on powerpc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
18
 */
19
19
 
20
 
/* $Id: packet-830.c,v 1.4 2005/01/31 07:21:34 mschimek Exp $ */
 
20
/* $Id: packet-830.c,v 1.6 2006/02/06 18:14:54 mschimek Exp $ */
21
21
 
22
22
#ifdef HAVE_CONFIG_H
23
23
#  include "config.h"
25
25
 
26
26
#include <assert.h>
27
27
 
28
 
#include "bcd.h"                /* vbi3_bcd2dec() */
 
28
#include "bcd.h"                /* vbi3_bcd2bin() */
29
29
#include "hamm.h"               /* vbi3_rev16p(), vbi3_iham8() */
30
30
#include "packet-830.h"
31
31
 
101
101
        if (!vbi3_is_bcd (bcd))
102
102
                return FALSE;
103
103
 
104
 
        mjd = vbi3_bcd2dec (bcd);
 
104
        mjd = vbi3_bcd2bin (bcd);
105
105
 
106
106
        bcd = (+ (buffer[15] << 16)
107
107
               + (buffer[16] << 8)