1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/misc/vbidecode/files/patch-aa
Roger Hardiman bd4dbe8470 Make vbidecode compile with the new gcc 2.95 compiler.
PR:		ports/16249
Submitted by:	Alexander Langer <alex@cichlids.com>
2000-02-01 16:23:53 +00:00

67 lines
1.2 KiB
Plaintext

*** vbidecode.cc.orig Sun Feb 28 18:18:04 1999
--- vbidecode.cc Tue Feb 1 16:14:39 2000
*************** TODO:
*** 52,58 ****
#include <sys/stat.h>
#include "tables.h"
! #include "../../driver/bttv.h"
int verbosity=0;
--- 52,59 ----
#include <sys/stat.h>
#include "tables.h"
! /* #include "../../driver/bttv.h" */
! #define VBI_MAXLINES 16
int verbosity=0;
*************** struct vpsinfo {
*** 214,220 ****
int namep;
unsigned char *info;
! getname(char *name) {
memcpy(name,lastname,9);
}
vpsinfo() {
--- 215,221 ----
int namep;
unsigned char *info;
! int getname(char *name) {
memcpy(name,lastname,9);
}
vpsinfo() {
*************** VTchannel vtch;
*** 494,506 ****
struct VDdeco {
int Vflag;
! write(unsigned char *data, int n) {
int i;
for (i=0; i<n; i++)
decode(data[i]);
}
! decode(unsigned char dat) {
if (!Vflag) {
if (dat==0x56)
Vflag=1;
--- 495,507 ----
struct VDdeco {
int Vflag;
! int write(unsigned char *data, int n) {
int i;
for (i=0; i<n; i++)
decode(data[i]);
}
! int decode(unsigned char dat) {
if (!Vflag) {
if (dat==0x56)
Vflag=1;