diff options
author | roger <roger@FreeBSD.org> | 2000-02-02 00:23:53 +0800 |
---|---|---|
committer | roger <roger@FreeBSD.org> | 2000-02-02 00:23:53 +0800 |
commit | 33295dbd5b1ba11d5abb3f4b670fe7172830ab7a (patch) | |
tree | 88bf8a825744afc123095487c767eb96856e1e2a /misc | |
parent | 41f218c2117f54a1ded1438910520891e6ad6a3d (diff) | |
download | freebsd-ports-gnome-33295dbd5b1ba11d5abb3f4b670fe7172830ab7a.tar.gz freebsd-ports-gnome-33295dbd5b1ba11d5abb3f4b670fe7172830ab7a.tar.zst freebsd-ports-gnome-33295dbd5b1ba11d5abb3f4b670fe7172830ab7a.zip |
Make vbidecode compile with the new gcc 2.95 compiler.
PR: ports/16249
Submitted by: Alexander Langer <alex@cichlids.com>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/vbidecode/files/patch-aa | 50 |
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; |