summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Hardiman <roger@FreeBSD.org>2000-02-01 16:23:53 +0000
committerRoger Hardiman <roger@FreeBSD.org>2000-02-01 16:23:53 +0000
commitbd4dbe8470bfbab7341854e3b146faa35ab0376c (patch)
treee80d8a194325c327dfde55980597d776ad0e0aaf
parentUpdate to 1.3.0.11 for Makefile (diff)
Make vbidecode compile with the new gcc 2.95 compiler.
PR: ports/16249 Submitted by: Alexander Langer <alex@cichlids.com>
-rw-r--r--misc/vbidecode/files/patch-aa50
1 files changed, 48 insertions, 2 deletions
diff --git a/misc/vbidecode/files/patch-aa b/misc/vbidecode/files/patch-aa
index 6816e204e29d..5ba6b3f36812 100644
--- a/misc/vbidecode/files/patch-aa
+++ b/misc/vbidecode/files/patch-aa
@@ -1,5 +1,5 @@
-*** vbidecode.cc.orig Mon Jun 7 17:12:04 1999
---- vbidecode.cc Mon Jun 7 17:12:20 1999
+*** 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>
@@ -18,3 +18,49 @@
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;